Mayur Maheshwari(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-997028-mma into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #997028 in OpenERP Addons: "Return picking wizard is not working "
https://bugs.launchpad.net/openobject-addons/+bug/997028
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-997028-mma/+merge/105187
Hello,
Stock: now return picking wizard is working well with no traceback
thanks.
mma
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-997028-mma/+merge/105187
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-997028-mma.
=== modified file 'stock/wizard/stock_return_picking.py'
--- stock/wizard/stock_return_picking.py 2012-05-03 10:29:10 +0000
+++ stock/wizard/stock_return_picking.py 2012-05-09 11:04:24 +0000
@@ -100,7 +100,8 @@
valid_lines = 0
return_history = self.get_return_history(cr, uid, record_id, context)
for m in pick.move_lines:
- if m.product_qty * m.product_uom.factor > return_history[m.id]:
+ if return_history:
+ if m.product_qty * m.product_uom.factor > return_history[m.id]:
valid_lines += 1
if not valid_lines:
raise osv.except_osv(_('Warning !'), _("There are no products to return (only lines in Done state and not fully returned yet can be returned)!"))
_______________________________________________
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