summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-11-27 17:01:54 +0100
committerThibault Delavallée <tde@openerp.com>2013-11-27 17:01:54 +0100
commitc8142a4e8f845ca0cd2b01014039e735e4454827 (patch)
treecf5113ca29aee7cbfe33c4cc88bee8555d0c2647
parent648fbb00ef14c8f3714cd9fe45643dfd929446ff (diff)
[FIX] website_sale: fixed call to website.get_order, located on website model
bzr revid: tde@openerp.com-20131127160154-v5qpxuh70axz9cck
-rw-r--r--addons/website_sale/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py
index a8f59098a6b..4139e229f07 100644
--- a/addons/website_sale/controllers/main.py
+++ b/addons/website_sale/controllers/main.py
@@ -378,9 +378,9 @@ class Ecommerce(http.Controller):
order_line_obj = request.registry.get('sale.order.line')
order_obj = request.registry.get('sale.order')
- order = website.get_current_order(request.cr, request.uid, context=request.context)
+ order = request.registry['website'].get_current_order(request.cr, request.uid, context=request.context)
if not order:
- order = website._get_order(request.cr, request.uid, context=request.context)
+ order = request.registry['website']._get_order(request.cr, request.uid, context=request.context)
request.context = dict(request.context, pricelist=self.get_pricelist())