[FIX] mrp_multi_level: avoid create warehouse 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
2025-01-10 13:50:49 +01:00
parent 6f2929f1dd
commit 0c45a2b889

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"