Post by visiniaga »

installed in Odoo Server 14.0+e-20210914

problem currently:
loading task takes 2-3 second, everything is okay, but changing assigned resource it seem getting loop, as the screen getting blinking

hope if there is quick solution

thanks in advance

Attachments
Screen recording 2021-09-19 3.23.24 PM.webm
(3.98 MiB) Downloaded 120 times
Screenshot 2021-09-19 3.21.20 PM.png
Screenshot 2021-09-19 3.21.20 PM.png (63.09 KiB) Viewed 1799 times

Post by visiniaga »

checking in the demo website, it should be fine,
https://odoo-gantt.bryntum.com

what is the problem?


Post by visiniaga »

there is error in the console log in chrome browser

Attachments
Screenshot 2021-09-19 5.31.08 PM.png
Screenshot 2021-09-19 5.31.08 PM.png (353.86 KiB) Viewed 1789 times

Post by mats »

This has already been fixed, can you please try updating to latest version?


Post by visiniaga »

showing another error:
Error:

Traceback:
Error: Load failed
at Project.onCrudRequestFailure (https://www.domain.com/bryntum_gantt_enterprise/static/gantt_src/js/chunk-vendors.js?v7.1:124331:24)

Attachments
Screenshot 2021-09-19 5.52.09 PM.png
Screenshot 2021-09-19 5.52.09 PM.png (112.67 KiB) Viewed 1787 times

Post by visiniaga »

Also perhaps this related, activity in the task show too many task

Attachments
Screenshot_20210919-182814_Chrome.jpg
Screenshot_20210919-182814_Chrome.jpg (197.78 KiB) Viewed 1786 times

Post by visiniaga »

pls ignore above screenshot, it seem cause by automated action to create activity

in the log message showing error for the last error:
Traceback:
Error: Load failed
at Project.onCrudRequestFailure (https://www.visiniaga.com/bryntum_gantt_enterprise/static/gantt_src/js/chunk-vendors.js?v7.1:124331:24)

Sep 19 19:17:56 odoo journal[3429]: Odoo Server 14.0+e-20210914:Final6:INFO:werkzeug:149.113.19.160 - - [19/Sep/2021 12:17:56] "GET /bryntum_gantt/load?project_id=38&data=%7B%22type%22%3A%22load%22%2C%22requestId%22%3A16320538755310%2C%22stores%22%3A%5B%22timeRanges%22%2C%22calendars%22%2C%22tasks%22%2C%22dependencies%22%2C%22resources%22%2C%22assignments%22%5D%7D HTTP/1.0" 500 -
Sep 19 19:17:56 odoo journal[3429]: Odoo Server 14.0+e-20210914:Final6:ERROR:werkzeug:Error on request:#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 237, in dispatch#012 result = request.dispatch()#012 File "/opt/odoo/odoo14/odoo/http.py", line 807, in dispatch#012 r = self.call_function(**self.params)#012 File "/opt/odoo/odoo14/odoo/http.py", line 360, in call_function#012 return checked_call(self.db, *args, **kwargs)#012 File "/opt/odoo/odoo14/odoo/service/model.py", line 94, in wrapper#012 return f(dbname, args, **kwargs)#012 File "/opt/odoo/odoo14/odoo/http.py", line 348, in checked_call#012 result = self.endpoint(a, **kw)#012 File "/opt/odoo/odoo14/odoo/http.py", line 913, in call#012 return self.method(args, **kw)#012 File "/opt/odoo/odoo14/odoo/http.py", line 532, in response_wrap#012 response = f(args, **kw)#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/controllers/controllers.py", line 249, in bryntum_gantt_load#012 assignments = [#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/controllers/controllers.py", line 257, in <listcomp>#012 for assignment in self.get_assignments(task, self.get_assignment) or []#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/controllers/controllers.py", line 57, in <lambda>#012 return map(lambda assignment: get_assignment(assignment, task), task.assigned_resources)#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/controllers/controllers.py", line 45, in get_assignment#012 resource_id = prefix + str(resource.id)#012Exception#012#012The above exception was the direct cause of the following exception:#012#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14-venv-python3.8/lib/python3.8/site-packages/werkzeug/serving.py", line 306, in run_wsgi#012 execute(self.server.app)#012 File "/opt/odoo/odoo14-venv-python3.8/lib/python3.8/site-packages/werkzeug/serving.py", line 294, in execute#012 application_iter = app(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/service/wsgi_server.py", line 111, in application#012 return ProxyFix(application_unproxied)(environ, start_response)#012 File "/opt/odoo/odoo14-venv-python3.8/lib/python3.8/site-packages/werkzeug/middleware/proxy_fix.py", line 232, in call#012 return self.app(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/service/wsgi_server.py", line 88, in application_unproxied#012 result = odoo.http.root(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/http.py", line 1306, in call#012 return self.dispatch(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/http.py", line 1272, in call#012 return self.app(environ, start_wrapped)#012 File "/opt/odoo/odoo14-venv-python3.8/lib/python3.8/site-packages/werkzeug/middleware/shared_data.py", line 220, in call#012 return self.app(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/http.py", line 1479, in dispatch#012 result = ir_http.dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/website/models/ir_http.py", line 183, in dispatch#012 response = super(Http, cls).dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/auth_signup/models/ir_http.py", line 19, in dispatch#012 return super(Http, cls).dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/web_editor/models/ir_http.py", line 21, in dispatch#012 return super(IrHttp, cls).dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/utm/models/ir_http.py", line 29, in dispatch#012 response = super(IrHttp, cls).dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/http_routing/models/ir_http.py", line 508, in dispatch#012 result = super(IrHttp, cls).dispatch()#012 File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 241, in dispatch#012 return cls.handle_exception(e)#012 File "/opt/odoo/odoo14/odoo/addons/utm/models/ir_http.py", line 34, in handle_exception#012 response = super(IrHttp, cls).handle_exception(exc)#012 File "/opt/odoo/odoo14/odoo/addons/http_routing/models/ir_http.py", line 598, in handle_exception#012 return super(IrHttp, cls).handle_exception(exception)#012 File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 209, in handle_exception#012 return request.handle_exception(exception)#012 File "/opt/odoo/odoo14/odoo/http.py", line 745, in handle_exception#012 return super(HttpRequest, self).handle_exception(exception)#012 File "/opt/odoo/odoo14/odoo/http.py", line 316, in _handle_exception#012 raise exception.with_traceback(None) from new_cause#012UnboundLocalError: local variable 'prefix' referenced before assignment


Post by mats »

Did you update?


Post by visiniaga »

yes,

  • upload
  • Update App List
  • Upgrade
Attachments
Screenshot 2021-09-19 7.58.16 PM.png
Screenshot 2021-09-19 7.58.16 PM.png (147.38 KiB) Viewed 1784 times

Post by Terence »

r: local variable 'prefix' referenced before assignment

Thanks for the report. This seems to be related to resource assignment. Will fix today.


Post Reply