[FIX] website_sale: return sale.order object

Always return a `sale.order` object, otherwise calling method may crash
since they expect receiving such an object.

opw-761344

Manual forward-port of 0888602831 which has
been lost during normal one.
This commit is contained in:
Christophe Simonis
2017-11-16 18:22:03 +01:00
parent fe674f06c1
commit a33e27b139
+1 -1
View File
@@ -293,7 +293,7 @@ class Website(models.Model):
else:
request.session['sale_order_id'] = None
return None
return self.env['sale.order']
return sale_order