Skip to Content
Menu
This question has been flagged
2 Replies
1954 Views

I don't know why but suddenly all my "settings" inside "configuration" of any module cannot be opened, there comes up an odoo server error.

will you have any idea how i should fix it?

my odoo is version 12.

this is the traceback.

thanks in advance.

---

Error:

Odoo Server Error


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, 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 698, in dispatch

    result = self._call_function(**self.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 98, in wrapper

    return f(dbname, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in __call__

    return self.method(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 963, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 955, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 755, in call_kw

    return _call_kw_model(method, model, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 728, in _call_kw_model

    result = method(recs, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1396, in load_views

    for [v_id, v_type] in views

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1396, in <dictcomp>

    for [v_id, v_type] in views

  File "/custom_addons_odoo/muk_web_utils/models/res_config_settings.py", line 71, in fields_view_get

    view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_config.py", line 395, in fields_view_get

    toolbar=toolbar, submenu=submenu)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 1482, in fields_view_get

    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1138, in postprocess_and_fields

    self.raise_view_error(message, view_id)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 568, in raise_view_error

    raise ValueError(message)

ValueError: Field `resource_calendar_id` does not exist


Error context:

View `res.config.settings.view.form.inherit.sale`

[view_id: 883, xml_id: sale.res_config_settings_view_form, model: res.config.settings, parent_id: 153]


--

Avatar
Discard

Please read your traceback and the loud and clear error message at the end, then use a meaningful title relating to your error message and provide the necessary context information.

Best Answer

there is  field named resource_calendar_id  in your view (res_config_settings_view_form)
but it doesn't exist in the model (res.config.settings). 

- try to add resource_calendar_id  field to this model (res.config.settings) . 
- then restart the server . 


Avatar
Discard
Author Best Answer

thanks for advice, but that doesn't work because


--

ERROR: duplicate key value violates unique constraint "ir_model_fields_name_unique"

DETAIL:  Key (model, name)=(res.config.settings, resource_calendar_id) already exists.

it has been there.
---

one more reason, i cannot create the field is i can add only custom field, that must start with x_, resource_calendar_id is base field, cannot add.

actually i guess the resource_calendar_id should be a field in basic model, should not be non-existed.

what confusing me is that why it suddenly warn? at the beginning, no such things happened.

what i have done basically install some additional modules. that is why i was asking for a troubleshoot strategy.
Avatar
Discard
Related Posts Replies Views Activity
2
Dec 23
12010
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
983