Post by sperez »

Team,

We are facing this error any time that we display a Gantt.

Odoo version: 14.0
OS: Linux
Video attached.

Updated Odoo to the last git update, but same results.
Also started a server from scratch without any other custon addons, same results.

Please, need your help.

Kind regards,

Sergio
Error:

Traceback:
TypeError: Cannot read properties of undefined (reading 'update')
at Class.updateState (https://erpdev.global.skyloom.co/web/content/9189-786572f/web.assets_backend.js:6621:116)
at Class.prototype.<computed> [as updateState] (https://erpdev.global.skyloom.co/web/content/9177-7bd07d4/web.assets_common.js:4645:488)
at Class._updateRendererState (https://erpdev.global.skyloom.co/web/content/9189-786572f/web.assets_backend.js:1357:22)

Attachments
WhatsApp Video 2021-10-27 at 12.54.49.mp4
(14.93 MiB) Downloaded 112 times
WhatsApp Image 2021-10-25 at 16.36.27.jpeg
WhatsApp Image 2021-10-25 at 16.36.27.jpeg (94 KiB) Viewed 1629 times

Post by mats »

Could you please try reinstalling, we just published a new update which might fix this.


Post by sperez »

Hi Mats,

Have installed the new version?

Unfortunately, similar error.

Is there any additional dependency that we are not taking into consideration?
Lastly, this is the path where the module was installed. odoo/custom-addons/bryntum_gantt-14.0.1.2.7/
Do you recommend to install in other folder?

In addition, I have updated the path on the odoo.conf and restarted the service.

Please advise

Thank you,

Sergio


Post by Terence »

Does this happen on install or on viewing?

When it happens on viewing. It could be that the sources of the previous javascript sources are still in browser cache, could you refresh the page and clear the cache?


Post by Terence »

I see it there was a video attached. Could you post the whole stacktrace?


Post by sperez »

Here you have

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 237, in dispatch
result = request.dispatch()
File "/opt/odoo/odoo/http.py", line 684, in dispatch
result = self.
call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 360, in call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, args, **kwargs)
File "/opt/odoo/odoo/http.py", line 348, in checked_call
result = self.endpoint(
a, **kw)
File "/opt/odoo/odoo/http.py", line 913, in call
return self.method(args, **kw)
File "/opt/odoo/odoo/http.py", line 532, in response_wrap
response = f(
args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 1389, in call_kw
return self.
call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 379, in _call_kw_multi
ids, args = args[0], args[1:]
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 640, in handle_exception
return super(JsonRequest, self).
handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
IndexError: list index out of range


Post by Terence »

Thank you for the report! We discovered that an override of the config settings in our model conflicted with other installed Odoo modules. We managed to find the cause today.

See this post
viewtopic.php?f=58&t=19293

Could you download our module from the Odoo app store again and reinstall? It should be fixed now.


Post by sperez »

Hi there,

The module was updated and now does not show errors when display the Gantt.
However, when you click on the create button the following error is displayed:

Error:

Traceback:
TypeError: Cannot read properties of undefined (reading 'children')
at GanttToolbar._callee$ (webpack:///./src/lib/GanttToolbar.js?:140:43)
at tryCatch (webpack:///./node_modules/regenerator-runtime/runtime.js?:63:40)
at Generator.invoke [as _invoke] (webpack:///./node_modules/regenerator-runtime/runtime.js?:294:22)
at Generator.eval [as next] (webpack:///./node_modules/regenerator-runtime/runtime.js?:119:21)
at asyncGeneratorStep (webpack:///./src/lib/GanttToolbar.js?:10:103)
at _next (webpack:///./src/lib/GanttToolbar.js?:12:194)
at eval (webpack:///./src/lib/GanttToolbar.js?:12:364)
at new Promise (<anonymous>)
at GanttToolbar.eval (webpack:///./src/lib/GanttToolbar.js?:12:97)
at GanttToolbar.onAddTaskClick (webpack:///./src/lib/GanttToolbar.js?:181:32)


Post by Terence »

Pushed fix. Should be available in the store this weekend.


Post by sperez »

updated the module, but I'm afraid that does not work.
same issue when you hit on CREATE.

Please advise.

Thank you

Error:

Traceback:
TypeError: Cannot read properties of undefined (reading 'children')
at GanttToolbar._callee$ (webpack:///./src/lib/GanttToolbar.js?:140:43)
at tryCatch (webpack:///./node_modules/regenerator-runtime/runtime.js?:63:40)
at Generator.invoke [as _invoke] (webpack:///./node_modules/regenerator-runtime/runtime.js?:294:22)
at Generator.eval [as next] (webpack:///./node_modules/regenerator-runtime/runtime.js?:119:21)
at asyncGeneratorStep (webpack:///./src/lib/GanttToolbar.js?:10:103)
at _next (webpack:///./src/lib/GanttToolbar.js?:12:194)
at eval (webpack:///./src/lib/GanttToolbar.js?:12:364)
at new Promise (<anonymous>)
at GanttToolbar.eval (webpack:///./src/lib/GanttToolbar.js?:12:97)
at GanttToolbar.onAddTaskClick (webpack:///./src/lib/GanttToolbar.js?:181:32)


Post Reply