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.