From ba6d0563e0732746a246ca7d192fbeee408c4cd5 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 15 Dec 2015 19:37:06 +0100 Subject: [PATCH] [FIX] quality_control_mrp: api.model method. Fixes #67 --- quality_control_mrp_oca/models/mrp_production.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quality_control_mrp_oca/models/mrp_production.py b/quality_control_mrp_oca/models/mrp_production.py index fe12c123f31..1d21ccbb3a5 100644 --- a/quality_control_mrp_oca/models/mrp_production.py +++ b/quality_control_mrp_oca/models/mrp_production.py @@ -28,7 +28,8 @@ def action_produce(self, production_id, production_qty, production_mode, production_id, production_qty, production_mode, wiz=wiz) if production_mode == 'consume_produce': inspection_model = self.env['qc.inspection'] - for move in self.move_created_ids2: + production = self.browse(production_id) + for move in production.move_created_ids2: qc_trigger = self.env.ref('quality_control_mrp.qc_trigger_mrp') trigger_lines = set() for model in ['qc.trigger.product_category_line',