Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-814102-mma into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #814102 in OpenERP Addons: "Wrong product quantities in Invoice lines"
https://bugs.launchpad.net/openobject-addons/+bug/814102
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-814102-mma/+merge/69033
Hello,
stock : now same quantity in invoice line when different internal location
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-814102-mma/+merge/69033
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-814102-mma.
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-07-11 16:11:22 +0000
+++ stock/stock.py 2011-07-25 06:51:34 +0000
@@ -1927,11 +1927,11 @@
done.append(move.id)
pickings[move.picking_id.id] = 1
r = res.pop(0)
- cr.execute('update stock_move set location_id=%s, product_qty=%s where id=%s', (r[1], r[0], move.id))
+ cr.execute('update stock_move set location_id=%s, product_qty=%s , product_uos_qty=%s where id=%s', (r[1], r[0], r[0] * move.product_id.uos_coeff, move.id))
while res:
r = res.pop(0)
- move_id = self.copy(cr, uid, move.id, {'product_qty': r[0], 'location_id': r[1]})
+ move_id = self.copy(cr, uid, move.id, {'product_qty': r[0],'product_uos_qty': r[0] * move.product_id.uos_coeff,'location_id': r[1]})
done.append(move_id)
if done:
count += len(done)
_______________________________________________
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