Post by Terence »


Post by visiniaga »

Hi Terrence,

Any update?


Post by Terence »

I have pushed the fix to the repository. When Odoo does the rescan it will be available in the store in version Version 1.2.4. It should be available at least tomorrow.

In case you want to patch it meanwhile you can change to following function in controller.py

@staticmethod
    def get_assignment(assignment, task):

    if len(assignment.resource.ids) > 0:
        resource = assignment.resource
        prefix = 'u_'

    if len(assignment.resource_base.ids) > 0:
        resource = assignment.resource_base
        prefix = 'r_'

    resource_id = prefix + str(resource.id)

    return {
            'id': '%d-%s' % (task.id, resource_id),
            'resource': resource_id,
            'event': task.id,
            'units': assignment.units
            }

Post by visiniaga »

could you send for the revision in patch file format?
just checking on the apps odoo, still on version 1.2.3


Post by Terence »

Not sure what that is. It will show up in the store shortly.


Post by visiniaga »

Hi Terence,

until now, store still download

Attachments
Screenshot 2021-09-21 3.44.15 PM.png
Screenshot 2021-09-21 3.44.15 PM.png (33.8 KiB) Viewed 837 times

Post by Terence »

For downloading from the Odoo's app store, you have to contact Odoo support. We do not manage their servers. They sell our modules.

BTW the solution is shipped with 14.0.1.2.3


Post by visiniaga »

Hi Terence,

last time the problem is rely on version 14.0.1.2.3,

showing another error

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)

Attachments
Screenshot 2021-09-21 4.07.59 PM.png
Screenshot 2021-09-21 4.07.59 PM.png (405.99 KiB) Viewed 833 times
Screenshot 2021-09-21 4.08.20 PM.png
Screenshot 2021-09-21 4.08.20 PM.png (240.36 KiB) Viewed 833 times

Post by Terence »

How can I reproduce this error? Is it project related. Do you have a stack trace?

Reproducible here?
https://odoo-gantt.bryntum.com/


Post by visiniaga »

Hi Terrence,

I believe https://odoo-gantt.bryntum.com/ yesterday, showing same error like I report, and I have create new project there.
today, there is no error, with it seems it new database as my project entry has gone.

could you check what happened?

it show in the message log:
Sep 21 18:30:58 odoo journal[19488]: Odoo Server 14.0+e-20210914:Final6:INFO:werkzeug:192.168.8.39 - - [21/Sep/2021 11:30:58] "GET /bryntum_gantt/load?project_id=38&data=%7B%22type%22%3A%22load%22%2C%22requestId%22%3A16322238580560%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 21 18:30:58 odoo journal[19488]: 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

while traceback shown:
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)


Post Reply