Skip to content
Snippets Groups Projects
Commit d5ffe890 authored by Prakash Prajapati's avatar Prakash Prajapati
Browse files

[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
parent 67ad4632
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment