Browse Source

[FIX] Fix issue in constraint function for res_users.

pull/26/head
Alexis de Lattre 13 years ago
parent
commit
a418836638
  1. 1
      asterisk_click2dial/asterisk_click2dial.py

1
asterisk_click2dial/asterisk_click2dial.py

@ -318,6 +318,7 @@ class res_users(osv.osv):
def _check_validity(self, cr, uid, ids): def _check_validity(self, cr, uid, ids):
for user in self.browse(cr, uid, ids): for user in self.browse(cr, uid, ids):
for check_string in [('Internal number', user.internal_number), ('Caller ID', user.callerid)]: for check_string in [('Internal number', user.internal_number), ('Caller ID', user.callerid)]:
if check_string[1]:
try: try:
plom = check_string[1].encode('ascii') plom = check_string[1].encode('ascii')
except UnicodeEncodeError: except UnicodeEncodeError:

Loading…
Cancel
Save