在Odoo 10的向导中添加one2many字段时,只读取按钮

时间:2017-12-14 12:19:32

标签: xml openerp odoo-10 wizard one2many

我在销售订单表格中有一个向导。在这个向导中,我添加了一个"按钮"在one2many字段中的字段,但它显示没有可单击的操作或它只是readonly。而这种意外只发生在按钮领域,其他领域运作良好。那么,为什么它只是readonly?

我的代码Xml代码在这里:

<group>
  <field name="wizard" style="width:600px">
    <tree editable="bottom">
        <field name="index" invisible="1"/>
        <field name="check_box" style="width:50px"/>
        <field name="products_ids"/>
        <field name="services"/>
        <button name="text_test_field1" string="test" type="object"/>
        <field name="prices" widget="monetary"/>
    </tree>
  </field>
</group>

0 个答案:

没有答案
相关问题