Hardik Ansodariya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-381990-han into
lp:openobject-addons/6.0.
Requested reviews:
nel (nel-tinyerp)
Vinay Rana (openerp) (vra-openerp)
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #924009 in OpenERP Addons: "Problem with side effect of automatic
chaining moves"
https://bugs.launchpad.net/openobject-addons/+bug/924009
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-381990-han/+merge/91022
Hello,
Fixed the issue Problem with side effect of automatic chaining moves
Thanks
Hardik
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-381990-han/+merge/91022
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-381990-han.
=== modified file 'stock/wizard/stock_return_picking.py'
--- stock/wizard/stock_return_picking.py 2011-01-18 13:41:41 +0000
+++ stock/wizard/stock_return_picking.py 2012-02-01 06:42:18 +0000
@@ -168,7 +168,10 @@
new_picking = pick_obj.copy(cr, uid, pick.id, {'name':'%s-return' % pick.name,
'move_lines':[], 'state':'draft', 'type':new_type,
'date':date_cur, 'invoice_state':data['invoice_state'],})
- new_location=move.location_dest_id.id
+ if move.location_dest_id.chained_auto_packing == "auto":
+ new_location=move.location_dest_id.chained_location_id.id
+ else:
+ new_location=move.location_dest_id.id
if move.state=='done':
new_qty = data['return%s' % move.id]
returned_qty = move.product_qty
_______________________________________________
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