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

I am trying to add an extra field to the Kanban view of the product templates. I can see my targeting works well because my module is in the list of inheritted views, but the field does not appear..

I tried using <field> with replace and also <xpath> targeting the whole "oe_kanban_details", but changes do no appear. Whats the problem?

<record id="product_template_kanban_view" model="ir.ui.view">
<field name="name">Product.template.product.kanban</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_template_kanban_view" />
<field name="arch" type="xml">
    <field name="name" position="replace">
        <field name="x_manufacturer"/>
        <field name="name"/>
    </field>
</field>
</record>
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I fixed it..

<field name="model">product.product</field> was supposed to be

<field name="model">product.template</field> because that's where my custom field is stored.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 19
2365
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14893
0
ต.ค. 23
33
3
ต.ค. 23
789
1
ต.ค. 23
569