Return shop currency when sho is esale

This commit is contained in:
resteve 2014-09-09 16:05:48 +02:00
parent 4ab87693c3
commit 73862b1c42
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class SaleCart(ModelSQL, ModelView):
Shop = Pool().get('sale.shop')
shop = Shop(shop)
if hasattr(shop, 'esale_currency'):
return shop.esale_currency.id
if shop.esale_currency:
return shop.esale_currency.id
if company:
Company = Pool().get('company.company')
return Company(company).currency.id