summaryrefslogtreecommitdiff
path: root/addons/lunch/views
diff options
context:
space:
mode:
authorPrakash Prajapati <ppr@odoo.com>2019-06-07 06:11:08 +0000
committerYannick Tivisse <yti@odoo.com>2019-06-26 07:54:39 +0000
commit92ae9687e877541b8118eab2f3a084c0b5fb18a1 (patch)
treeadcb3f80f2385b1dcc3d85c0c60715e27066fc80 /addons/lunch/views
parent372475e7ae69e23cd481fb6cdf0979c43ce418f4 (diff)
[IMP] generic: add field company_id on tree view
Now that the multi company mode is much more easier to activate, it is needed to display this information on the tree views, to help people to know on which company is set some records in list view. task-1997637 Closes: #3397 closes odoo/odoo#33976 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/lunch/views')
-rw-r--r--addons/lunch/views/lunch_orders_views.xml1
-rw-r--r--addons/lunch/views/lunch_product_views.xml2
2 files changed, 3 insertions, 0 deletions
diff --git a/addons/lunch/views/lunch_orders_views.xml b/addons/lunch/views/lunch_orders_views.xml
index 0a637869776..b2b6f03177c 100644
--- a/addons/lunch/views/lunch_orders_views.xml
+++ b/addons/lunch/views/lunch_orders_views.xml
@@ -39,6 +39,7 @@
<button name="action_confirm" string="Confirm" type="object" icon="fa-phone text-success" attrs="{'invisible': [('state', '!=', 'ordered')]}" groups="lunch.group_lunch_manager"/>
<button name="action_cancel" string="Cancel" type="object" icon="fa-times-circle text-danger" attrs="{'invisible': [('state', 'in', ['cancelled', 'confirmed'])]}" groups="lunch.group_lunch_manager"/>
<field name='state'/>
+ <field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>
diff --git a/addons/lunch/views/lunch_product_views.xml b/addons/lunch/views/lunch_product_views.xml
index 04964c55c47..b5da9ae99bf 100644
--- a/addons/lunch/views/lunch_product_views.xml
+++ b/addons/lunch/views/lunch_product_views.xml
@@ -27,6 +27,7 @@
<field name="name"/>
<field name="category_id"/>
<field name="supplier_id"/>
+ <field name="company_id" groups="base.group_multi_company"/>
<field name="description"/>
<field name="price" widget="monetary"/>
</tree>
@@ -189,6 +190,7 @@
<field name="arch" type="xml">
<tree string="Products List">
<field name='name' string="Product Category: "/>
+ <field name="company_id" groups="base.group_multi_company"/>
</tree>
</field>
</record>