[IMP] quality_control_mrp: Add reference to mrp.production

This commit is contained in:
Pedro M. Baeza
2016-03-15 01:02:39 +01:00
parent 46e1de0573
commit e50f8c556f

View File

@@ -15,6 +15,8 @@ class QcInspection(models.Model):
if self.object_id:
if self.object_id._name == 'stock.move':
self.production = self.object_id.production_id
elif self.object_id._name == 'mrp.production':
self.production = self.object_id
production = fields.Many2one(
comodel_name="mrp.production", compute="get_production", store=True)