-
- Downloads
[FIX] product: support string values for context `pricelist` key when computing prices
As of v7 search views will replace the value of any `self` literal in a @context attribute by the name of the record, whereas it used to be its ID. This means that the `Pricelist` filter used to display the product list with a specific pricelist would not work anymore. The fix requires a rather hackish name_search() override for product.pricelist because the display name of pricelists includes their currency, while that could be a valid name for a pricelist too. To avoid side-effects the name_search() override only picks up the special case used by the product.product._product_price() method when it tries to apply the context pricelist, that is with operator explicitly set to `=` and no extra domain `args`. lp bug: https://launchpad.net/bugs/1178835 fixed bzr revid: odo@openerp.com-20130906155047-7dmozy2jpe1ca1p2
Please register or sign in to comment