Skip to content

Commit dad9d98

Browse files
committed
[FIX] purchase,stock: traceback field used in domain missing in view
before this commit, enabling the mass editing for the picking operation type tree view or for purchase.order tree view using the studio, throws the exception. * install studio * open purchase order tree * enable mass editing for the tree from studio app * exception will be shown after this commit, on enabling mass editing on this tree view, will not throw exception. closes odoo#112826 Signed-off-by: William Henrotin (whe) <whe@odoo.com>
1 parent 7059fdd commit dad9d98

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

addons/purchase/views/purchase_views.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@
580580
<field name="partner_id" readonly="1"/>
581581
<field name="company_id" readonly="1" options="{'no_create': True}"
582582
groups="base.group_multi_company" optional="show"/>
583+
<field name="company_id" groups="!base.group_multi_company" invisible="1"/>
583584
<field name="date_planned" invisible="context.get('quotation_only', False)" optional="show"/>
584585
<field name="user_id" optional="show" widget="many2one_avatar_user"/>
585586
<field name="date_order" attrs="{'invisible': ['|', '|', ('state', '=', 'purchase'), ('state', '=', 'done'), ('state', '=', 'cancel')]}"
@@ -614,6 +615,7 @@
614615
<field name="date_approve" widget="date" invisible="context.get('quotation_only', False)" optional="show"/>
615616
<field name="partner_id"/>
616617
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" optional="show"/>
618+
<field name="company_id" groups="!base.group_multi_company" invisible="1"/>
617619
<field name="user_id" widget="many2one_avatar_user" optional="show"/>
618620
<field name="date_order" invisible="not context.get('quotation_only', False)" optional="show"/>
619621
<field name="activity_ids" widget="list_activity" optional="show"/>

addons/stock/views/stock_picking_type_views.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<field name="warehouse_id" groups="stock.group_stock_multi_warehouses"/>
6767
<field name="sequence_id" groups="base.group_no_one"/>
6868
<field name="company_id" groups="base.group_multi_company"/>
69+
<field name="company_id" groups="!base.group_multi_company" invisible="1"/>
6970
</tree>
7071
</field>
7172
</record>

0 commit comments

Comments
 (0)