[FIX] stock: package location only in multi location
When we open the form view of a package_level, the location_id and location_dest_id fields are visible evene if multi location is not enabled on the database. We add the corresponding groups to avoid such a behavior.
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
<field name="show_lots_text" invisible="1"/>
|
||||
<group>
|
||||
<field name="package_id"/>
|
||||
<field name="location_id"/>
|
||||
<field name="location_dest_id"/>
|
||||
<field name="location_id" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="location_dest_id" groups="stock.group_stock_multi_locations"/>
|
||||
<field name="is_done"/>
|
||||
</group>
|
||||
<field name="move_ids" attrs="{'invisible': [('state', 'in', ('new', 'draft', 'assigned', 'done'))]}">
|
||||
|
||||
Reference in New Issue
Block a user