c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37354
[Bug 890463] [NEW] product.packaging name_search error
Public bug reported:
If you define a product without packaging, on receipt (view stock.picking form), when you push the packaging search button, the entire packaging list (corresponding for the other product) is listed.
The corresponding view have a correct definition : domain="[('product_id','=',product_id)]"
but in the wms package there's a name_search definition with :
ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit)
if not ids:
ids = self.search(cr, uid, [('name', operator, name)], limit=limit)
The first calling search, args = ('product_id', '=', product_id) corresponding to the restriction.
But the second, the args variable is omited and no restriction is apply. The result list correspond to the global product_packaging definition of all produts !
What is the reason to enlarge the search operation to all products ?
** Affects: wms
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/890463
Title:
product.packaging name_search error
Status in Warehouse Management System:
New
Bug description:
If you define a product without packaging, on receipt (view stock.picking form), when you push the packaging search button, the entire packaging list (corresponding for the other product) is listed.
The corresponding view have a correct definition : domain="[('product_id','=',product_id)]"
but in the wms package there's a name_search definition with :
ids = self.search(cr, uid, [('name', operator, name)] + args, limit=limit)
if not ids:
ids = self.search(cr, uid, [('name', operator, name)], limit=limit)
The first calling search, args = ('product_id', '=', product_id) corresponding to the restriction.
But the second, the args variable is omited and no restriction is apply. The result list correspond to the global product_packaging definition of all produts !
What is the reason to enlarge the search operation to all products ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/wms/+bug/890463/+subscriptions
Follow ups
References