summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDenis Vermylen <dve@odoo.com>2017-03-14 17:49:44 +0100
committerDenis Vermylen <dve@odoo.com>2017-03-14 17:49:44 +0100
commit328a5a7ea393b8a3cc60ca36b2b41d606e2110e8 (patch)
tree229e8cd879c8e32f106e338c83954a4f355927b1 /addons
parent3feb1a82cb056249f0954ef20a3a35e296a09625 (diff)
[FIX] website_sale: extra step access rights
Public users were stuck at the extra step during the checkout process if enabled due to not having the access rights to write on the sale.order.
Diffstat (limited to 'addons')
-rw-r--r--addons/website_sale/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py
index 75ff784675a..82cb45a563e 100644
--- a/addons/website_sale/controllers/main.py
+++ b/addons/website_sale/controllers/main.py
@@ -101,7 +101,7 @@ class WebsiteSaleForm(WebsiteForm):
order = request.website.sale_get_order()
if data['record']:
- order.write(data['record'])
+ order.sudo().write(data['record'])
if data['custom']:
values = {