[IMP] repair: 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:
Prakash Prajapati
2019-07-30 08:53:05 +00:00
parent 67ad4632a1
commit d5ffe89058
+9 -6
View File
@@ -8,12 +8,15 @@
<field name="arch" type="xml">
<tree string="Repairs order" decoration-muted="state in ('done','cancel')" decoration-info="state=='draft'">
<field name="name" />
<field name="product_id" />
<field name="partner_id"/>
<field name="address_id"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="guarantee_limit"/>
<field name="state"/>
<field name="product_id" optional="show"/>
<field name="product_qty" optional="hide" string="Quantity"/>
<field name="product_uom" optional="hide" string="Unit of Measure"/>
<field name="partner_id" optional="show"/>
<field name="address_id" optional="show"/>
<field name="guarantee_limit" optional="show"/>
<field name="location_id" optional="hide"/>
<field name="company_id" groups="base.group_multi_company" optional="show"/>
<field name="state" optional="show"/>
</tree>
</field>
</record>