product.packaging name_search error

Bug #890463 reported by Alex Bellon (B2LOG)
6
This bug affects 1 person
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="[('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 post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.