diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-03-30 11:56:28 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2011-03-30 11:56:28 +0200 |
| commit | 7fa3dd42a7895e5d05474e4b0d462e4a2dfb86ea (patch) | |
| tree | 9769c9dc355128f0e34b422ef35b470fc516b1ee /addons | |
| parent | ab56c9a9aee16fea4beae01e10bc401c2e105ecf (diff) | |
[FIX] mrp: when producing, wrong stock move where created when there was a produciton lot on the 'product to consume' move
lp bug: https://launchpad.net/bugs/740047 fixed
bzr revid: qdp-launchpad@openerp.com-20110330095628-3kynl4yrz423cmqg
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/mrp/mrp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 976325f3bed..e69e3134e0b 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -728,7 +728,7 @@ class mrp_production(osv.osv): if consumed_qty == 0: consumed_qty = production_qty * f.product_qty / production.product_qty if consumed_qty > 0: - stock_mov_obj.action_consume(cr, uid, [raw_product.id], consumed_qty, production.location_src_id.id, context=context) + stock_mov_obj.action_consume(cr, uid, [raw_product.id], consumed_qty, raw_product.location_id.id, context=context) if production_mode == 'consume_produce': # To produce remaining qty of final product |
