I need to add 3 optional columns to an existing form view, with the menu on the right side with the three dots.(The one to add columns or remove them)
Right there I need to add 3 columns to choose:
- Internal reference
- Manufacturer reference I
- Manufacturer
This is my current view:
xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="view_inventory_form_inh">
<field name="name">view.inventory.form.inhfield>
<field name="model">stock.inventoryfield>
<field name="inherit_id" ref="stock.view_inventory_form" />
<field name="arch" type="xml">
<field name="location_ids" position="before">
<field
name="manufacturer_ids"
widget="many2many_tags"
domain="[('is_manufacturer', '=', True)]"
attrs="{'invisible':[('filter','!=','manufacturers')],
'readonly': [('state', '!=', 'draft')]}"
/>
field>
field>
record>
odoo>
I already added the fields in the model.
Does anybody know how I add these columns in the view ?