summaryrefslogtreecommitdiff
path: root/addons/repair/views
diff options
context:
space:
mode:
authorPrakash Prajapati <ppr@odoo.com>2019-06-05 10:39:04 +0000
committerPrakash Prajapati <ppr@odoo.com>2019-07-30 08:53:05 +0000
commitd5ffe890587d73c5079ee71087a08344e82b643b (patch)
tree8b56fbd4b689daff28db6252fbb476e6bdd714b2 /addons/repair/views
parent67ad4632a1910198b42c212799a2b8cce54148f1 (diff)
[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
Diffstat (limited to 'addons/repair/views')
-rw-r--r--addons/repair/views/repair_views.xml15
1 files changed, 9 insertions, 6 deletions
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml
index abbf31fefc4..cecd336973a 100644
--- a/addons/repair/views/repair_views.xml
+++ b/addons/repair/views/repair_views.xml
@@ -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>