Odoo Help


AssertionError: Missing country on company

on 5/18/15, 3:38 AM 1,160 views


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

On 5/27/15, 11:55 AM


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!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/18/15, 3:38 AM
Seen: 1160 times
Last updated: 5/27/15, 11:55 AM