Browse Source

Merge pull request #138 from open-synergy/8.0-fix-flake8

[8.0] Fix flake8
pull/65/merge
Alexis de Lattre 7 years ago
committed by GitHub
parent
commit
28bc3717f9
  1. 1
      asterisk_click2dial/scripts/set_name_agi.py
  2. 3
      base_phone/base_phone.py
  3. 1
      base_phone/report_sxw_format.py

1
asterisk_click2dial/scripts/set_name_agi.py

@ -387,6 +387,7 @@ def main(options, arguments):
stdout_write('SET CALLERID "%s"<%s>\n' % (res, phone_number)) stdout_write('SET CALLERID "%s"<%s>\n' % (res, phone_number))
return True return True
if __name__ == '__main__': if __name__ == '__main__':
usage = "Usage: set_name_agi.py [options] login1 login2 login3 ..." usage = "Usage: set_name_agi.py [options] login1 login2 login3 ..."
epilog = "Script written by Alexis de Lattre. " epilog = "Script written by Alexis de Lattre. "

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) user = self.pool['res.users'].browse(cr, uid, uid, context=context)
# country_id on res.company is a fields.function that looks at # country_id on res.company is a fields.function that looks at
# company_id.partner_id.addres(default).country_id # 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]) vals[self._country_field] = int(vals[self._country_field])
countrycode = None countrycode = None
if self._country_field: if self._country_field:

1
base_phone/report_sxw_format.py

@ -70,4 +70,5 @@ def format(
res = format_original(self, text, oldtag=oldtag) res = format_original(self, text, oldtag=oldtag)
return res return res
report_sxw.rml_parse.format = format report_sxw.rml_parse.format = format
Loading…
Cancel
Save