[MERGE] Merged lp:openobject-addons.
authorParamjit Singh Sahota <psa@tinyerp.com>
Mon, 7 Apr 2014 05:04:00 +0000 (10:34 +0530)
committerParamjit Singh Sahota <psa@tinyerp.com>
Mon, 7 Apr 2014 05:04:00 +0000 (10:34 +0530)
1  2 
addons/sale/sale_view.xml
addons/website_sale/__openerp__.py
addons/website_sale/controllers/main.py

Simple merge
Simple merge
@@@ -323,9 -348,9 +348,9 @@@ class Ecommerce(http.Controller)
  
          # must have a draft sale order with lines at this point, otherwise reset
          order = self.get_order()
 -        if order and order.state != 'draft':
 +        if order and order.state not in ['draft','shopping_cart']:
-             request.registry['website'].sale_reset_order(cr, uid, context=context)
-             return request.redirect('/shop/')
+             request.registry['website'].ecommerce_reset(cr, uid, context=context)
+             return request.redirect('/shop')
  
          self.get_pricelist()