From 0a213d1c604721e23fe2228a23cbd111bccfd980 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Sat, 29 Jul 2017 10:57:55 +0700 Subject: [PATCH] Fix flake8 --- base_phone/base_phone.py | 3 ++- base_phone/report_sxw_format.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/base_phone/base_phone.py b/base_phone/base_phone.py index 8eae17d..11ef387 100644 --- a/base_phone/base_phone.py +++ b/base_phone/base_phone.py @@ -53,7 +53,8 @@ class PhoneCommon(models.AbstractModel): user = self.pool['res.users'].browse(cr, uid, uid, context=context) # country_id on res.company is a fields.function that looks at # company_id.partner_id.addres(default).country_id - if self._country_field in vals and isinstance(vals[self._country_field], (str, unicode)): + if self._country_field in vals and isinstance( + vals[self._country_field], (str, unicode)): vals[self._country_field] = int(vals[self._country_field]) countrycode = None if self._country_field: diff --git a/base_phone/report_sxw_format.py b/base_phone/report_sxw_format.py index 0ac0d30..5697841 100644 --- a/base_phone/report_sxw_format.py +++ b/base_phone/report_sxw_format.py @@ -70,4 +70,5 @@ def format( res = format_original(self, text, oldtag=oldtag) return res + report_sxw.rml_parse.format = format