在保存 odoo 9

问题描述

我在 one2many 字段的树中放置了一个按钮,但在保存前不可点击,请问如何在保存前使按钮可点击。我使用odoo 9 谢谢

<field name="product_ids" nolabel="1"
                            context="{'default_transaction_type':transaction_type,'default_transaction_mode': transaction_mode}">
    <tree editable="bottom" delete="1" edit="1" import="false">
        <field name="product_id" options="{'no_open':True,'create': False,'edit': False}"/>
        <field name="has_lot" invisible="1"/>
        <button name="get_lot_list" type="object" string="الحصص" icon="fa-list" class="oe_highlight"
          attrs="{'invisible': [('has_lot','=',False)]}"/>
        <field name="quantity"/>
        <field name="unit" options="{'no_open':True,'edit': False}"/>
        <field name="status" attrs="{'readonly':['|',('transaction_type',1),('product_type',1)],'required':[('product_type',2)]}"
                                       options="{'no_open':True,'edit': False}"
                                />
        <field name="observation"/>
        <field name="transaction_type" invisible="1"/>
        <field name="transaction_mode" invisible="1"/>
        <field name="product_type" invisible="1"/>
    </tree>
    <form></form>
</field>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...