want to inherit and add a custom field brand_id in Products notebook page 'general_information', after field Cost (standard_price).
1) it is not showing custom field brand_id (Many2many) before going in Edit mode. it is showing only in Edit mode or Create new... (please check both screenshots below)
AND
2) it is not appearing below Cost (standard_price) column ALSO String/Label not appear
what i am doing wrong or missing? please help
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_products_form_brands_inherit" model="ir.ui.view">
<field name="name">products.template.brands</field>
<field name="model">product.template</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='general_information']//field[@name='standard_price']" position="after">
<field name="brand_id" string="Brand" widget="many2many_tags"/>
</xpath>
</field>
</record>
</odoo>
In Edit mode:
regards