mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
Merge pull request #112 from diagramsoftware/8.0-quality_control_mrp-ignore_cancelled_moves
[8.0][FIX] quality_control_mrp: ignore cancelled moves when creating inspections
This commit is contained in:
@@ -29,7 +29,8 @@ class MrpProduction(models.Model):
|
||||
if production_mode == 'consume_produce':
|
||||
inspection_model = self.env['qc.inspection']
|
||||
production = self.browse(production_id)
|
||||
for move in production.move_created_ids2:
|
||||
for move in production.move_created_ids2.filtered(
|
||||
lambda r: r.state == 'done'):
|
||||
qc_trigger = self.env.ref('quality_control_mrp.qc_trigger_mrp')
|
||||
trigger_lines = set()
|
||||
for model in ['qc.trigger.product_category_line',
|
||||
|
||||
Reference in New Issue
Block a user