summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2017-01-13 15:34:10 +0100
committerDenis Ledoux <dle@odoo.com>2017-01-13 15:50:00 +0100
commit623eeb688f119755c2dcb03eb172553718579884 (patch)
tree8f477ddda1108db41f49a8feae9e9f54f67d5555 /addons/web/static/src/js/views/basic/basic_controller.js
parent9ba3762a3251697436d0cd853672444631ea8d46 (diff)
[FIX] website_sale*: default company & warehouse for website orders
By default, the default warehouse of a sale order is the first warehouse of the company of the user creating the sale order. In the case of a sale order created from the website, the user who is creating the sale order is the superuser, a.k.a the administrator. There was a big issue in the context of a multicompany database, with an administrator changing of company: the sale orders coming from the website would suddenly change of company, which is wrong. This was even more severe when the admin changed to a company which had no warehouse defined: It was then impossible to create the website cart, as no default warehouse was found, while the warehouse is a required field on the order. This revision ensures that the cart / sale order is always created under the website company opw-704557
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions