[11.0][FIX] mrp_multi_level:

* remove duplicated fields in view
* fix issue using this module together with procurement_auto_create_group.
This commit is contained in:
Lois Rilo
2019-06-12 15:54:55 +02:00
committed by JasminSForgeFlow
parent 7b0dfc1f5b
commit cb14d5516e
2 changed files with 2 additions and 3 deletions

View File

@@ -149,7 +149,8 @@ class ProductMRPArea(models.Model):
@api.multi
def _compute_supply_method(self):
group_obj = self.env['procurement.group']
group_obj = self.env['procurement.group'].with_context(
no_auto_create_group=True)
for rec in self:
proc_loc = rec.location_proc_id or rec.mrp_area_id.location_id
values = {

View File

@@ -37,8 +37,6 @@
<field name="location_id"/>
</group>
<group name="settings">
<field name="warehouse_id"/>
<field name="location_id"/>
<field name="calendar_id"/>
</group>
</group>