[fix] shopping cart - get price list for default territory if no price list is selected

This commit is contained in:
Anand Doshi 2015-05-26 17:37:39 -04:00
parent e440914327
commit 438b67e8b0

View File

@ -130,6 +130,9 @@ class ShoppingCartSettings(Document):
def get_price_list(self, billing_territory):
price_list = self.get_name_from_territory(billing_territory, "price_lists", "selling_price_list")
if not (price_list and price_list[0]):
price_list = self.get_name_from_territory(self.default_territory, "price_lists", "selling_price_list")
return price_list and price_list[0] or None
def get_tax_master(self, billing_territory):