Skip to Content
Menu
This question has been flagged

Hi,

I'm currently having with some error that showed up after desinstalling some module.
When I'm trying to access any configuration page anywhere in odoo, it show this error:

TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'​

I understand the meaning of this error but I cannot find what could be source. If anyone has any ideas ...

Edit :

Here is the whole error:


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/mnt/extra-addons/web/controllers/main.py", line 962, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/mnt/extra-addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 745, in call_kw
    return _call_kw_model(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 718, in _call_kw_model
    result = method(recs, *args, **kwargs)
  File "/mnt/extra-addons/base/models/res_config.py", line 529, in default_get
    value = self.env[field.comodel_name].browse(int(value)).exists().id
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Avatar
Discard

Is this the complete traceback?

Author

Yes this everything odoo is returning

Best Answer

I think one of your set_default_ function in config is updating the config values with none type values. Please check your all config settings model defined in your custom modules.

Avatar
Discard
Author

Could you be more a bit explicit ? I don't have any set_default_ function in any of my custom modules ...

Did you write any config model in your custom?

Author

Nop, all the modules that i wrote are just changing logical things

Best Answer

Hello experts,

has there been any solution to this issue as I am observing exactly the same here in V12 Odoo. Anytime a menu item "Configuration"->"Settings" in any module is called exactly the same error appears as in initial question here...

This system was migrated from V8 to V12 back in April last year. I know there have been Modules that were not migrated. If a missing module/addon could be the reason for this behaviour, how would I find out which missing module could be the reason for this? I couldn't find any table yet, that would contain modules. Is there some table that contains installed modules?

Thanks for any ideas or even help on this!
Avatar
Discard
Related Posts Replies Views Activity
3
Oct 20
2272
2
May 19
2723
2
Jan 24
5337
1
Jul 23
1549
2
Apr 20
17693