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

Hi, I'm using Odoo Studio to edit some functionalities and add new fields to my application. I was trying to solve an issue with it, so I renamed a field and I got an error when trying to open Project module.

The traceback is:

Odoo Server Error
Traceback (most recent call last):
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/saas-14/addons/web/controllers/main.py", line 884, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/addons/web/controllers/main.py", line 876, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/api.py", line 679, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/api.py", line 664, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1330, in load_views
    for [v_id, v_type] in views
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1330, in <dictcomp>
    for [v_id, v_type] in views
  File "/home/odoo/src/odoo/saas-14/addons/mail/models/mail_thread.py", line 362, in fields_view_get
    res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1417, in fields_view_get
    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 906, in postprocess_and_fields
    self.raise_view_error(message, view_id)
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 485, in raise_view_error
    raise ValueError(message)
ValueError: O campo `x_studio_field_edfh3` n\xe3o existe
Error context:
See `n/a`
[view_id: n/a, xml_id: n/a, model: n/a, parent_id: n/a]

I know the only thing I need to do is renaming the variable again, but I can't figure out how to do it. Would it be editing the source code directly? If yes, how can I do that? If not, what could I do to fix it?

Thanks in advance.

Avatar
Discard
Author Best Answer

thanks Hilar, we tried that in vail. 

But we were able to fix it by reverting the name of field.

It is a bit hidden: Settings -> Enable developer mode -> Settings -> Technical -> Data Structure/Fields


Avatar
Discard

Great! Thanks

Best Answer

Upgrade the app you have created with odoo studio.

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 24
25099
2
May 24
5524
3
Mar 24
4966
0
Mar 24
264
3
Feb 24
11421