[IMP] quality_control_stock, quality_control_mrp: set correct qty to tests

This commit is contained in:
agaldona
2017-04-11 12:18:22 +02:00
committed by Simone Rubino
parent c68df514cf
commit 9661f826dc

View File

@@ -60,6 +60,8 @@ class QcInspection(models.Model):
# Fill qty when coming from pack operations
if object_ref and object_ref._name == 'stock.pack.operation':
res['qty'] = object_ref.product_qty
if object_ref and object_ref._name == 'stock.move':
res['qty'] = object_ref.product_uom_qty
return res
picking = fields.Many2one(