Valencia Rodrigues (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-bug-767208-vro into
lp:openobject-addons/6.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
Related bugs:
Bug #767208 in OpenERP Addons: "MO: consume products overwrites production
lot in finished goods"
https://bugs.launchpad.net/openobject-addons/+bug/767208
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-767208-vro/+merge/68251
Hello,
There was a problem of product lot being overwritten in Manufacturing Orders as
reported in LP bug 767208.
This fixes the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-bug-767208-vro/+merge/68251
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-bug-767208-vro.
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-07-06 12:17:09 +0000
+++ stock/stock.py 2011-07-18 13:43:15 +0000
@@ -2133,7 +2133,7 @@
self.write(cr, uid, [move.id], {'move_history_ids': [(4, move.move_dest_id.id)]})
#cr.execute('insert into stock_move_history_ids (parent_id,child_id) values (%s,%s)', (move.id, move.move_dest_id.id))
if move.move_dest_id.state in ('waiting', 'confirmed'):
- if move.prodlot_id.id:
+ if move.prodlot_id.id and move.product_id==move.move_dest_id.product_id:
self.write(cr, uid, [move.move_dest_id.id], {'prodlot_id':move.prodlot_id.id})
self.force_assign(cr, uid, [move.move_dest_id.id], context=context)
if move.move_dest_id.picking_id:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp