Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4267 Ansichten

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>
Avatar
Verwerfen
Autor Beste Antwort

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.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Juli 19
2356
2
Dez. 23
14850
0
Okt. 23
33
3
Okt. 23
788
1
Okt. 23
569