Browse Source

Fix flake8

pull/138/head
Andhitia Rama 7 years ago
parent
commit
0a213d1c60
  1. 3
      base_phone/base_phone.py
  2. 1
      base_phone/report_sxw_format.py

3
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:

1
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
Loading…
Cancel
Save