product.packaging name_search error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
A SYLEAM Module - Warehouse Management System |
New
|
Undecided
|
Unassigned |
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=
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 ?