Odoo笔记本位置

Odoo notebook position

Odoo 10

我想移动笔记本页面,但在移动时出现错误。我想将会员笔记本移到联系人和地址之前

在会员插件中,我将 <notebook position="inside"> 替换为之前的版本,但这没有用,Odoo 崩溃并出现错误 ParseError:“视图定义无效

<record model="ir.ui.view" id="view_partner_form">
            <field name="name">res.partner.form.inherit</field>
            <field name="model">res.partner</field>
            <field name="inherit_id" ref="base.view_partner_form"/>
            <field name="arch" type="xml">
                <notebook position="inside">
                    <page string="Membership">
                        <group>
                            <group>
                                <field name="free_member"/>
                                <label for="membership_state"/>
                                <div>
                                    <field name="membership_state"/>
                                    <button name="%(action_membership_invoice_view)d" type="action" string="Buy Membership" 
                                        attrs="{'invisible':[('free_member','=',True)]}" class="oe_link"/>
                                </div>
                            </group>

尝试使用 xpath:

<xpath expr="//form/sheet/notebook/page[1]" position="before">
   <page string="Membership">
       <group>
          <group>
             <field name="free_member"/>
             <label for="membership_state"/>
              <div>
                  <field name="membership_state"/>
                  <button name="%(action_membership_invoice_view)d" type="action" string="Buy Membership" 
                    attrs="{'invisible':[('free_member','=',True)]}" class="oe_link"/>
               </div>
           </group>
        </group>
   </page>