一起显示表单字段和树视图odoo

时间:2016-03-22 12:36:49

标签: openerp odoo-8

我设法通过在创建的新模块中继承 res.config.settings ,将两个自定义字段添加到设置中。 xml页面是

<record id="op_product_fast_moving_parts_form" model="ir.ui.view">
        <field name="name">Configure Fast Moving Parts</field>
        <field name="model">fastmovingparts.config.settings</field>
        <field name="arch" type="xml">
            <form string="FastMoving">
                <header>
                    <button string="Apply" type="object" name="execute" class="oe_highlight"/>
                    or
                    <button string="Cancel" type="object" name="cancel" class="oe_link"/>
                </header>

                <separator string="Configure Fast Moving Parts"/>

                <group name="Configure Fast Moving Parts">
                    <field string="Minimum Quantity" name="fast_moving_parts_min_qty"/>
                </group>
                <group>
                    <field string="Interval" name="fast_moving_parts_chk_interval"/>
                </group>

            </form>                

        </field>
    </record>

点击应用按钮时会更新设置。

这里我还有一个要求,我需要在单击“应用”按钮时打开向导,该按钮将显示产品树。我怎样才能做到这一点?

提前致谢

1 个答案:

答案 0 :(得分:0)

我没有得到您的问题,但我认为您想要点击“应用”按钮打开向导,该按钮将显示产品树。

相关问题