projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0cc26e
)
[FIX] action_consume wizard is not generating proper move lines for consume product...
author
Amit Dodiya
<ado@openerp.com>
Tue, 29 May 2012 07:24:15 +0000
(12:54 +0530)
committer
Amit Dodiya
<ado@openerp.com>
Tue, 29 May 2012 07:24:15 +0000
(12:54 +0530)
bzr revid: ado@openerp.com-
20120529072415
-qb1cuiw1kx0nq8dn
addons/mrp/mrp.py
patch
|
blob
|
history
diff --git
a/addons/mrp/mrp.py
b/addons/mrp/mrp.py
index
8a25af0
..
1cfa8cd
100644
(file)
--- a/
addons/mrp/mrp.py
+++ b/
addons/mrp/mrp.py
@@
-736,7
+736,8
@@
class mrp_production(osv.osv):
# we already have more qtys consumed than we need
continue
- raw_product[0].action_consume(qty, raw_product[0].location_id.id, context=context)
+ for consume_line in raw_product:
+ consume_line.action_consume(qty, consume_line.location_id.id, context=context)
if production_mode == 'consume_produce':
# To produce remaining qty of final product