openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02857
[Merge] lp:~hbrunn/ocb-addons/trunk-lp1268594 into lp:ocb-addons
Holger Brunn (Therp) has proposed merging lp:~hbrunn/ocb-addons/trunk-lp1268594 into lp:ocb-addons.
Requested reviews:
OpenERP Community Backports Team (ocb)
Related bugs:
Bug #1268594 in OpenERP Community Backports (Addons): "[trunk] [7.0] stock.check_assign ignores decimal precision"
https://bugs.launchpad.net/ocb-addons/+bug/1268594
For more details, see:
https://code.launchpad.net/~hbrunn/ocb-addons/trunk-lp1268594/+merge/201444
Automatically derived from https://code.launchpad.net/~therp-nl/openobject-addons/trunk-lp1268594 for https://code.launchpad.net/~openerp/openobject-addons/trunk.
--
https://code.launchpad.net/~hbrunn/ocb-addons/trunk-lp1268594/+merge/201444
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~hbrunn/ocb-addons/trunk-lp1268594 into lp:ocb-addons.
=== modified file 'stock/stock.py'
--- stock/stock.py 2013-11-28 14:50:59 +0000
+++ stock/stock.py 2014-01-13 16:10:29 +0000
@@ -2212,7 +2212,11 @@
pickings[move.picking_id.id] = 1
r = res.pop(0)
product_uos_qty = self.pool.get('stock.move').onchange_quantity(cr, uid, ids, move.product_id.id, r[0], move.product_id.uom_id.id, move.product_id.uos_id.id)['value']['product_uos_qty']
- cr.execute('update stock_move set location_id=%s, product_qty=%s, product_uos_qty=%s where id=%s', (r[1], r[0],product_uos_qty, move.id))
+ move.write({
+ 'location_id': r[1],
+ 'product_qty': r[0],
+ 'product_uos_qty': product_uos_qty,
+ })
while res:
r = res.pop(0)
Follow ups