odoo many2many字段 指定打开的form视图

                    <notebook>
                        <page name="付款信息" string="付款信息">
                            <field name="account_payment_ids" context="{'form_view_ref':'purchase_ex.account_payment_view_form'}">
                                <tree readonly="1">
                                    <field name="partner_id" string="供应商" readony="1" context="{'form_view_ref':'purchase_ex.purchase_partner_view_form'}"/>
                                    <field name="amount" readony="1"/>
                                    <field name="payment_date" readony="1"/>
                                    <field name="type_bill" readony="1"/>
                                    <field name="bill_no" readony="1"/>
                                    <field name="dept_name" readony="1"/>
                                    <field name="settletype" readony="1"/>
                                tree>

                            field>

                        page>
                    notebook>

可以在context中指定form_view_ref 

你可能感兴趣的:(odoo many2many字段 指定打开的form视图)