summaryrefslogtreecommitdiff
path: root/addons/website/controllers/web_editor.py
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-09-27 10:41:02 +0200
committerJeremy Kersten <jke@odoo.com>2018-09-27 13:13:38 +0200
commitd8f0837f94b3de63db34bcf835c672e271b20733 (patch)
tree627e17d4ad4b4a978df041843ffe0d7a3bb97ecd /addons/website/controllers/web_editor.py
parent1da9ed30c2fb0aa32f491068dd977ee23733557e (diff)
[FIX] website: last_website_so_id is website dependent
Before this commit, if you use this field outside of a controller website, it will fail because this field depend of request.website that is only set on controller of type website. Now we return False if we call try to use this field outside of the website. Eg: call get_current_pricelist in json
Diffstat (limited to 'addons/website/controllers/web_editor.py')
0 files changed, 0 insertions, 0 deletions