Skip to content

Commit

Permalink
[FIX] quality_control_mrp: api.model method. Fixes OCA#67
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza authored and NachoAlesLopez committed Sep 18, 2018
1 parent 5f8ddd2 commit ce8acee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quality_control_mrp/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ce8acee

Please sign in to comment.