diff --git a/.travis.yml b/.travis.yml index 55b291a..608393e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,9 +17,9 @@ install: - git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools - export PATH=${HOME}/maintainer-quality-tools/travis:${PATH} - travis_install_nightly - - sudo pip install phonenumbers py-Asterisk gevent_psycopg2 gevent_socketio + - sudo pip install phonenumbers py-Asterisk - hg clone http://bitbucket.org/anybox/web_action_request -b ${VERSION} ${HOME}/web_action_request - - hg clone http://bitbucket.org/anybox/web_socketio ${HOME}/web_socketio + - hg clone http://bitbucket.org/anybox/bus_enhanced ${HOME}/bus_enhanced script: - travis_run_tests diff --git a/base_phone/res_users_view.xml b/base_phone/res_users_view.xml index 99b64c9..c9962f7 100644 --- a/base_phone/res_users_view.xml +++ b/base_phone/res_users_view.xml @@ -13,8 +13,8 @@ res.users - - + + diff --git a/base_phone/wizard/number_not_found.py b/base_phone/wizard/number_not_found.py index 50a85af..3580c47 100644 --- a/base_phone/wizard/number_not_found.py +++ b/base_phone/wizard/number_not_found.py @@ -60,8 +60,9 @@ class number_not_found(orm.TransientModel): if not res: res = {} if res.get('calling_number'): - convert = self.pool['phone.common']._generic_reformat_phonenumbers( - cr, uid, None, {'phone': res.get('calling_number')}, context=context) + convert = self.pool['res.partner']._generic_reformat_phonenumbers( + cr, uid, None, {'phone': res.get('calling_number')}, + context=context) parsed_num = phonenumbers.parse(convert.get('phone')) res['e164_number'] = phonenumbers.format_number( parsed_num, phonenumbers.PhoneNumberFormat.INTERNATIONAL)