[FIX] website_sale: fix unnecessary permanent update of pricelist on checkout

This commit is contained in:
Damien Bouvy 2015-04-01 16:13:44 +02:00
parent d84b5d35ac
commit e4d8246c81
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class website(orm.Model):
values['partner_id'] = partner.id
sale_order_obj.write(cr, SUPERUSER_ID, [sale_order_id], values, context=context)
if flag_pricelist or values.get('fiscal_position') != fiscal_position:
if flag_pricelist or values.get('fiscal_position', False) != fiscal_position:
update_pricelist = True
# update the pricelist