[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.
This commit is contained in:
Denis Vermylen
2017-03-14 17:49:44 +01:00
parent 3feb1a82cb
commit 328a5a7ea3
+1 -1
View File
@@ -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 = {