[FIX] mrp: use id for warehouse creation

Expected type is an id, not a record

Fixes odoo/odoo#27556
Closes odoo/odoo#27596

Co-authored-by: Daniel Yang, zyyang
This commit is contained in:
Yenthe V.G
2018-10-11 14:58:51 +00:00
committed by Martin Trigaux
co-authored by Daniel Yang, zyyang
parent 9a6f245540
commit 9ffe661d1a
+1 -1
View File
@@ -223,7 +223,7 @@ class StockWarehouse(models.Model):
'manu_type_id': {
'active': self.manufacture_to_resupply,
'default_location_src_id': self.manufacture_steps in ('pbm', 'pbm_sam') and self.pbm_loc_id.id or self.lot_stock_id.id,
'default_location_dest_id': self.manufacture_steps == 'pbm_sam' and self.sam_loc_id or self.lot_stock_id.id,
'default_location_dest_id': self.manufacture_steps == 'pbm_sam' and self.sam_loc_id.id or self.lot_stock_id.id,
},
})
return data