diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2019-06-05 10:39:55 +0000 |
|---|---|---|
| committer | Prakash Prajapati <ppr@odoo.com> | 2019-07-30 08:53:05 +0000 |
| commit | f8814f2a799f5e16b9756d94726d0ef26ebdcfbf (patch) | |
| tree | a0262097e55604ef92a2d349b2f38e16655a7a15 /addons/sale_crm | |
| parent | 16db6d8fd075717e3f6c5bfdbd8c38591468ae38 (diff) | |
[IMP] sale(_*): set optional field to simplify the tree view
* = sale_crm, sale_stock, website_sale
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/sale_crm')
| -rw-r--r-- | addons/sale_crm/views/sale_order_views.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/addons/sale_crm/views/sale_order_views.xml b/addons/sale_crm/views/sale_order_views.xml index 61318da066b..2428a1bb037 100644 --- a/addons/sale_crm/views/sale_order_views.xml +++ b/addons/sale_crm/views/sale_order_views.xml @@ -51,6 +51,28 @@ </field> </record> + <record id="view_quotation_tree" model="ir.ui.view"> + <field name="name">sale.order.tree.inherit.sale.crm</field> + <field name="model">sale.order</field> + <field name="inherit_id" ref="sale.view_quotation_tree"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='invoice_status']" position="after"> + <field name="tag_ids" optional="hide" widget="many2many_tags"/> + </xpath> + </field> + </record> + + <record id="view_order_tree" model="ir.ui.view"> + <field name="name">sale.order.tree.inherit.sale.crm</field> + <field name="model">sale.order</field> + <field name="inherit_id" ref="sale.view_order_tree"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='invoice_status']" position="after"> + <field name="tag_ids" optional="hide" widget="many2many_tags"/> + </xpath> + </field> + </record> + <!-- This menu is display in CRM app when sale is installed--> <menuitem id="sale_order_menu_quotations_crm" |
