summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-01-29 17:48:02 +0100
committerDenis Ledoux <dle@odoo.com>2016-01-29 17:51:51 +0100
commit56e3d2d51216aef3652b2fbca8a9d7b176cc480c (patch)
tree0a54feff5247605c892db91f6dc0de499c9ffe79 /addons/web_editor/static/src
parent6c8bbc3d466b9d5d83d3b7f46f3a904bd433cdaf (diff)
[FIX] website_sale: get_pricelist_available from the backend.
The method `get_pricelist_available` can be called from the backend. (e.g. when using `website.pricelist_id`, whic is a function field ultimately calling `get_pricelist_available`). In such a case, `request.website` is not available, as the request is not done from the website. Therefore, we have to fallback in a work-around to detect the website for which we would like to get the available pricelists. Passing the `website_id` in the context is kinda crappy, but as the website for which we would like the available pricelists is not passed in the method params (trough a parameter `ids` for instance), this is one way to put it through. opw-668230
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions