[IMP] product: set optional field to simplify the tree view
Purpose of the commit is to set the new attribute OPTIONAL = SHOW/Hide on tree view so the user can easily hide/show the optional fields on the tree view. task-1997453 Closes: #33888
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Product">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="default_code"/>
|
||||
<field name="default_code" optional="show"/>
|
||||
<field name="barcode" optional="hide"/>
|
||||
<field name="name"/>
|
||||
<field name="list_price" string="Sales Price"/>
|
||||
<field name="standard_price"/>
|
||||
<field name="categ_id"/>
|
||||
<field name="type"/>
|
||||
<field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/>
|
||||
<field name="list_price" string="Sales Price" optional="show"/>
|
||||
<field name="standard_price" optional="show"/>
|
||||
<field name="categ_id" optional="hide"/>
|
||||
<field name="type" optional="hide"/>
|
||||
<field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show"/>
|
||||
<field name="active" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
@@ -347,15 +347,17 @@
|
||||
<field eval="7" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Product Variants">
|
||||
<field name="default_code"/>
|
||||
<field name="default_code" optional="show"/>
|
||||
<field name="barcode" optional="hide"/>
|
||||
<field name="name"/>
|
||||
<field name="attribute_value_ids" widget="many2many_tags" groups="product.group_product_variant"/>
|
||||
<field name="lst_price"/>
|
||||
<field name="standard_price"/>
|
||||
<field name="type" invisible="1"/>
|
||||
<field name="company_id" groups="base.group_multi_company" optional="hide"/>
|
||||
<field name="lst_price" optional="show" string="Sales Price"/>
|
||||
<field name="standard_price" optional="show"/>
|
||||
<field name="categ_id" optional="hide"/>
|
||||
<field name="type" optional="hide"/>
|
||||
<field name="price" invisible="not context.get('pricelist',False)"/>
|
||||
<field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/>
|
||||
<field name="barcode"/>
|
||||
<field name="uom_id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom" optional="show"/>
|
||||
<field name="product_tmpl_id" invisible="1"/>
|
||||
<field name="active" invisible="1"/>
|
||||
</tree>
|
||||
|
||||
Reference in New Issue
Block a user