[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:
committed by
Pierre Masereel
parent
c892a11fb0
commit
702317fbb8
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user