[IMP] sale_stock: Show warehouse on SO only if user has rights for multi warehouses

Purpose of this commit:
Currently warehouse is showing in sale order even if user has no rights for multi warehouses.
After this commit:
User can access warehouse on sale order even if we have enabled multiple warehouses.

This commit is related to task_id  : 1896087.

closes odoo/odoo#28021
This commit is contained in:
Hetashree Chauhan
2018-11-26 07:26:54 +00:00
committed by Pierre Masereel
parent c892a11fb0
commit 702317fbb8
+1 -1
View File
@@ -20,7 +20,7 @@
<attribute name="groups"></attribute> <!-- Remove the res.group on the group and set it on the field directly-->
</xpath>
<xpath expr="//field[@name='expected_date']" position="before">
<field name="warehouse_id" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
<field name="warehouse_id" options="{'no_create': True}" groups="stock.group_stock_multi_warehouses"/>
<field name="incoterm" widget="selection" groups="sale_stock.group_display_incoterm"/>
<field name="picking_policy" required="True"/>
</xpath>