Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3361 Widoki

Hello, I am having an error on Odoo11 and i would like to comprehend the cause of it. So I'll tell you how to replicate it. 

This is the following error message when using Odoo Studio.

Odoo Server Error

Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 650, in _handle_exception

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

  File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 87, in reraise

    raise value

  File "/home/odoo/src/odoo/odoo/http.py", line 692, in dispatch

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

  File "/home/odoo/src/odoo/odoo/http.py", line 342, in _call_function

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

  File "/home/odoo/src/odoo/odoo/service/model.py", line 97, in wrapper

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

  File "/home/odoo/src/odoo/odoo/http.py", line 335, in checked_call

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

  File "/home/odoo/src/odoo/odoo/http.py", line 936, in __call__

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

  File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/enterprise/web_studio/controllers/main.py", line 598, in edit_view

    for op in [op for op in operations if create_binary_field(op)]:

  File "/home/odoo/src/enterprise/web_studio/controllers/main.py", line 598, in <listcomp>

    for op in [op for op in operations if create_binary_field(op)]:

  File "/home/odoo/src/enterprise/web_studio/controllers/main.py", line 588, in create_binary_field

    if op['node'].get('tag') == 'field' and op['node'].get('field_description'):

KeyError: 'node'

In order for this error to happen. I create a module. Create 2 objects with account.invoice as related model.
Then go to account.invoice model and add 2 fields. One of them is boolean and the other one is text. Then i create a new view just like "account.invoice" tree view, but this one will have the 2 new fields i created as well.
Then i proceed to go to developer debug, start Odoo studio and edit the view on the objects i created. 
I set both of them only to tree view and set the domain for one of them to show all invoices with the boolean value set to "true". And the other object the same way but with the boolean value set to "false". I'll attach a picture so you can understand it better.

 

Then whenever i try to uncheck the "Can Edit" "Can Create" "Can Delete" options on view options from whichever of those 2 objects, it just pops up the mentioned error. Why is that? Making thigns worst. The same error now appears on every single app on Odoo when trying to edit its views options. Help.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

I respond myself.
NOTE: ALWAYS WORK WITH GITHUB OR OTHER CONTROL VERSION SOFTWARE.
The error was because I scr*w up some objects I created on my Odoo instance. The only way to resolve this was to go back one step at the time and figure out what was the thing that I did that made my Odoo instance to not work. 
Also take note that for every step you go back, you better restart the odoo service, since it will probably try to rebuild standard parts of it software. So you could actualy be undoing all of your last changes and Odoo still would give you the error, but it is because you just didn't restart the service.
Thanks for your attention.
Best Regards,

Jean.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 20
3358
1
paź 17
8077
2
paź 20
7201
0
lip 18
3056
3
kwi 25
10562