Return shop currency when sho is esale
This commit is contained in:
parent
4ab87693c3
commit
73862b1c42
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue