Skip to content

Commit

Permalink
[FIX] website_sale: Last Online SO
Browse files Browse the repository at this point in the history
- Log in on the eCommerce
- Add a product in the cart
- Log out
- Log in again

The previous cart is not retrieved, and a new one is created.

opw-704646
  • Loading branch information
nim-odoo committed Jan 24, 2017
1 parent b9374d5 commit 1aa7af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_sale/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def sale_get_order(self, force_create=False, code=None, update_pricelist=False,
request.session['sale_order_id'] = sale_order.id

if request.website.partner_id.id != partner.id:
partner.write({'last_website_so_id': sale_order_id})
partner.write({'last_website_so_id': sale_order.id})

if sale_order:

Expand Down

0 comments on commit 1aa7af2

Please sign in to comment.