Skip to Content
Menu
This question has been flagged
1 Reply
3074 Views

Hello,

I have installed the addons click2dial (https://github.com/OCA/connector-telephony)

I have an error when I click on a phone number :

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 300, in checked_call
    return self.endpoint(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 796, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 396, in response_wrap
    response = f(*args, **kw)
  File "/var/lib/odoo/.local/share/Odoo/addons/8.0/base_phone/controller.py", line 33, in click2dial
    'click2dial_id': click2dial_id,
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 901, in proxy
    result = meth(cr, request.uid, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/var/lib/odoo/.local/share/Odoo/addons/8.0/asterisk_click2dial/asterisk_click2dial.py", line 408, in click2dial
    cr, uid, erp_number, context=context)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 336, in old_api
    result = method(recs, *args, **kwargs)
  File "/var/lib/odoo/.local/share/Odoo/addons/8.0/base_phone/base_phone.py", line 233, in convert_to_dial_number
    assert(country_code), 'Missing country on company'
AssertionError: Missing country on company

Avatar
Discard
Best Answer

Hello


I had the exact same error. Solution for me was to change the country on the company page (settings > company) from België to Belgium and then reinstall all modules. So there was something wrong with the company country in the settings. I suggest you have a look there...


Good luck!

Avatar
Discard