mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] quality_control_stock, quality_control_mrp: set correct qty to tests
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user