一、效果

odoo 在form视图sheet右上角增加按钮

 

 

 

 二、实现方法

增加以下代码即可

<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>                

 

相关文章:

  • 2021-06-06
  • 2021-06-05
  • 2022-12-23
  • 2021-08-26
  • 2021-12-17
  • 2021-12-18
  • 2021-10-23
猜你喜欢
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-03-01
  • 2020-07-12
  • 2021-08-07
相关资源
相似解决方案