summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2013-09-06 17:50:47 +0200
committerOlivier Dony <odo@openerp.com>2013-09-06 17:50:47 +0200
commit6de0051315daaeb6e49a9caa151bce338738187b (patch)
treed8a7162086768da29c2b1d425d9ed794fa8cd916 /addons/analytic_user_function/analytic_user_function.py
parent04560e356e1e1ea3e57f1d729cef5682d9ac71b7 (diff)
[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
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions