odoo 在form視圖sheet右上角增長按鈕

1、效果

 

 

 

 2、實現方法

增長如下代碼便可spa

<div class="oe_button_box" name="button_box">
    <button type="object"
            class="oe_stat_button" icon="fa-user-secret">
        <field string="手上數量" name="name"
               widget="statinfo"  modifiers="{'readonly':true}"/>
    </button>
</div>                
相關文章
相關標籤/搜索