mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] quality_control_mrp: Add reference to mrp.production
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user