Browse Source

PEP8 fix

pull/18/head
Alexis de Lattre 9 years ago
parent
commit
0e91470ff2
  1. 3
      asterisk_click2dial/asterisk_click2dial.py
  2. 10
      base_phone/base_phone.py

3
asterisk_click2dial/asterisk_click2dial.py

@ -347,7 +347,8 @@ class res_users(orm.Model):
help="Caller ID used for the calls initiated by this user."),
# You'd probably think: Asterisk should reuse the callerID of sip.conf!
# But it cannot, cf
# http://lists.digium.com/pipermail/asterisk-users/2012-January/269787.html
# http://lists.digium.com/pipermail/asterisk-users/
# 2012-January/269787.html
'cdraccount': fields.char(
'CDR Account', size=50,
help="Call Detail Record (CDR) account used for billing this "

10
base_phone/base_phone.py

@ -107,11 +107,11 @@ class phone_common(orm.AbstractModel):
"Cannot reformat the phone number '%s' to "
"international format" % vals.get(field))
if context.get('raise_if_phone_parse_fails'):
raise orm.except_orm(
_('Error:'),
_("Cannot reformat the phone number '%s' to "
"international format. Error message: %s")
% (vals.get(field), e))
raise orm.except_orm(
_('Error:'),
_("Cannot reformat the phone number '%s' to "
"international format. Error message: %s")
% (vals.get(field), e))
return vals
def get_name_from_phone_number(

Loading…
Cancel
Save