Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
10882 มุมมอง

Hi,

Please help me for this.

<record model="ir.ui.view" id="combo.list">
      <field name="name">combo list</field>
      <field name="model">sale.order.line</field>
      <field name="inherit_id" ref="sale.view_order_form"/>
      <field name="arch" type="xml">
        <xpath expr="form/sheet/notebook['']" position="after">
          <page string="Combo Pack">
          <field name="productspack" string="Select Products"/>
          </page>
        </xpath>
      </field>
    </record>
อวตาร
ละทิ้ง
ผู้เขียน

I am using version 10.0

ผู้เขียน

Thanks everyone , i just figure out that i have to change my model name to sale.order and also i have error in xpath expr.

คำตอบที่ดีที่สุด

You have an error in this line expr="form/sheet/notebook['']"
Try with this syntax expr="form/sheet/notebook"

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

Try To Use This Xpath in Your Code(box).

Your page is Always inside of Notebook and if AnyOther page is Available in Form that You Inherit than Your Xpath is <xpath "//form/sheet/notebook/page[@name='name of page'] position='after'>


<xpath expr="//form/sheet/notebook" position="inside">
    <page string="Combo Pack">
         <field name="productspack" string="Select Products"/>
    </page>
</xpath>
อวตาร
ละทิ้ง