summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRémi Rahir <rar@odoo.com>2020-07-23 07:54:30 +0000
committerRémi Rahir <rar@odoo.com>2020-07-24 10:29:18 +0000
commit4cddc497600547581ce51bfe779098c29e7115d6 (patch)
treee358b29f9bdc66cd0556bbbd5d8901c11896931d /addons/web/static/src/js/views/basic/basic_controller.js
parent27d47d1435b800b0567aea8c78f03eacfdfb8002 (diff)
[FIX] website_sale: Fetch pricelist with proper rights
When a user with access to company A tried to make a purchase on the website of company B, he would face a traceback upon calling `_get_pricelist_available`. This happens because we eventually try to access to the current company (B) while forcing environment of the user (in company A), thus forfeiting the superuser privileges, which triggers an access error. closes odoo/odoo#54891 X-original-commit: 0c38d7f55a48175938803012907a66d394f6c5b3 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions