Skip to content
Snippets Groups Projects
Commit 7a2ba5ca authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] website_sale: apply reduction code

The line being deleted in this revision looks to have been useful when it was introduced in this commit:
36fc910e

As the sale order was updated right away through the update_pricelist method
But since this rev. 22f4c315, the sale order is updated later, and reset the sale_order_code_pricelist_id value in the session right after setting it prevent to apply the pricelist of the promotional code...
parent cafbf071
No related merge requests found
......@@ -158,7 +158,6 @@ class website(orm.Model):
pricelist_id = pricelist_ids[0]
request.session['sale_order_code_pricelist_id'] = pricelist_id
update_pricelist = True
request.session['sale_order_code_pricelist_id'] = False
pricelist_id = request.session.get('sale_order_code_pricelist_id') or partner.property_product_pricelist.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment