c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04127
[Bug 626883] Re: [5.0][nan_product_pack] Cannot fill an inventory
May I please ask Albert to handle this?
Thanks always.
** Changed in: openobject-addons
Status: New => Won't Fix
** Changed in: openobject-addons
Assignee: (unassigned) => Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan)
--
[5.0][nan_product_pack] Cannot fill an inventory
https://bugs.launchpad.net/bugs/626883
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Addons Modules: Won't Fix
Bug description:
Hi,
If nan_product_pack is installed, when you want to to fill an inventory with the wizard, it calls to get_product_available() function, in this module this function is extended but his first behavior is different that base function, this wizard passes to function the parameter ids sets to False, then "for product in self.browse(cr,uid,ids,context=context):" in your function raises an exception.
If you see the base function in first lines it adds:
if not ids:
ids = self.search(cr, uid, [])
res = {}.fromkeys(ids, 0.0)
if not ids:
return res
These lines avoid this error and the lines make the expected behavior for this wizard, return the qty of all products in the specified location.