[FIX] mrp_multi_level: avoid create warehouse and location in mrp area view

Avoid bug that occurs when clicking "New" on the warehouse_id field if the Storage Locations setting is not active.
This commit is contained in:
RicardCForgeFlow
2024-12-18 13:23:20 +01:00
parent b2a2398cc9
commit c35578d006

View File

@@ -35,8 +35,8 @@
<group colspan="4" col="2">
<group>
<field name="active" invisible="1" />
<field name="warehouse_id" />
<field name="location_id" />
<field name="warehouse_id" options="{'no_create': True}" />
<field name="location_id" options="{'no_create': True}" />
<field
name="company_id"
groups="base.group_multi_company"