From 7e75fc06748c8c2acd845edce42e58108de28e3f Mon Sep 17 00:00:00 2001 From: Invitu Date: Mon, 4 Apr 2016 13:35:52 -1000 Subject: [PATCH] [FIX] Fix problem in point_of_sale with customer editing --- base_phone/base_phone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_phone/base_phone.py b/base_phone/base_phone.py index 13db43a..b704255 100644 --- a/base_phone/base_phone.py +++ b/base_phone/base_phone.py @@ -73,11 +73,11 @@ class PhoneCommon(models.AbstractModel): countrycode = None if self._country_field and vals.get(self._country_field): country = self.env['res.country'].browse( - vals[self._country_field]) + int(vals[self._country_field])) countrycode = country.code elif self._partner_field and vals.get(self._partner_field): partner = self.env['res.partner'].browse( - vals[self._partner_field]) + int(vals[self._partner_field])) countrycode = partner.country_id.code or False return countrycode