Somesh Khare(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-576898-skh into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576898-skh/+merge/115899
Hello Sir,
[FIX]stock.py: selecting production lot without the product on the creation of
stock move in Internal move form raise the error.
Steps: In Web client
1. Create Internal Move from "Warehouse/Warehouse Management/Internal Moves".
2. Create stock move from O2M and do not select product , select the production
lot.
It will raise the Error.
This branch fixes this issue. Kindly review the branch and please share your
view on it.
Thanks,
Somesh Khare
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-576898-skh/+merge/115899
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-576898-skh.
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-03-29 15:29:29 +0000
+++ stock/stock.py 2012-07-20 07:29:38 +0000
@@ -1733,6 +1733,8 @@
@param product_id: Product id
@return: Warning message
"""
+ if not product_id:
+ return {}
if not prodlot_id or not loc_id:
return {}
ctx = context and context.copy() or {}
_______________________________________________
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