Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-575875-rha into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
Related bugs:
Bug #1008099 in OpenERP Addons: "stock inventory - wrong stock_moves if moves
with prodlots and without exists for one product and location"
https://bugs.launchpad.net/openobject-addons/+bug/1008099
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-575875-rha/+merge/120088
Hello,
Filling inventory for product without production lot then total qty
should return qty withouht production lot(prodlot_id==Null) but currently it
does not distinguish
and retund all qty with and without lot. It leads to wrong creation of stock
moves.
Please review this fix.
Regards,
Rifakat Haradwala
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-575875-rha/+merge/120088
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-575875-rha.
=== modified file 'stock/product.py'
--- stock/product.py 2012-06-19 07:42:50 +0000
+++ stock/product.py 2012-08-17 09:30:55 +0000
@@ -261,6 +261,8 @@
if prodlot_id:
prodlot_clause = ' and prodlot_id = %s '
where += [prodlot_id]
+ elif 'prodlot_id' in context and not prodlot_id:
+ prodlot_clause = 'and prodlot_id is null '
# TODO: perhaps merge in one query.
if 'in' in what:
_______________________________________________
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