Post by visiniaga »

showing error when update 2.0.4 from 2.0.1 in odoo 14e

update to 2.0.4 showing error

Jun 30 23:39:48 odoo journal[789999]: Odoo Server 14.0+e-20230630:Final6:ERROR:odoo.modules.registry:Failed to load registry#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14/odoo/modules/registry.py", line 63, in new#012 return cls.registries[db_name]#012 File "/opt/odoo/odoo14/odoo/tools/func.py", line 71, in wrapper#012 return func(self, *args, **kwargs)#012 File "/opt/odoo/odoo14/odoo/tools/lru.py", line 34, in getitem#012 a = self.d[obj]#012KeyError: 'Final6'#012#012During handling of the above exception, another exception occurred:#012#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14/odoo/modules/registry.py", line 89, in new#012 odoo.modules.load_modules(registry.db, force_demo, status, update_module)#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 455, in load_modules#012 processed_modules += load_marked_modules(cr, graph,#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 347, in load_marked_modules#012 loaded, processed = load_module_graph(#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 179, in load_module_graph#012 load_openerp_module(package.name)#012 File "/opt/odoo/odoo14/odoo/modules/module.py", line 385, in load_openerp_module#012 import('odoo.addons.' + module_name)#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/init.py", line 4, in #012 from . import models#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/models/init.py", line 3, in #012 from . import project_task#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/models/project_task.py", line 3, in #012 from odoo import models, Command, fields, api#012ImportError: cannot import name 'Command' from 'odoo' (/opt/odoo/odoo14/odoo/init.py)
Jun 30 23:39:48 odoo journal[789999]: Odoo Server 14.0+e-20230630:Final6:INFO:werkzeug:207.46.13.214 - - [30/Jun/2023 16:39:48] "GET /web/image/blog.post/25/author_avatar/Keunggulan Access Control Centralized dibanding Standalone HTTP/1.0" 500 -
Jun 30 23:39:48 odoo journal[789999]: Odoo Server 14.0+e-20230630:Final6:ERROR:werkzeug:Error on request:#012Traceback (most recent call last):#012 File "/opt/odoo/odoo14/odoo/modules/registry.py", line 63, in new#012 return cls.registries[db_name]#012 File "/opt/odoo/odoo14/odoo/tools/func.py", line 71, in wrapper#012 return func(self, *args, **kwargs)#012 File "/opt/odoo/odoo14/odoo/tools/lru.py", line 34, in getitem#012 a = self.d[obj]#012KeyError: 'Final6'#012#012During handling of the above exception, another exception occurred:#012#012Traceback (most recent call last):#012 File "/opt/odoo/odoo-venv-python3.8.8/lib/python3.8/site-packages/werkzeug/serving.py", line 306, in run_wsgi#012 execute(self.server.app)#012 File "/opt/odoo/odoo-venv-python3.8.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/odoo-venv-python3.8.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 1298, in call#012 return self.dispatch(environ, start_response)#012 File "/opt/odoo/odoo14/odoo/http.py", line 1264, in call#012 return self.app(environ, start_wrapped)#012 File "/opt/odoo/odoo-venv-python3.8.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 1471, in dispatch#012 odoo.registry(db).check_signaling()#012 File "/opt/odoo/odoo14/odoo/init.py", line 104, in registry#012 return modules.registry.Registry(database_name)#012 File "/opt/odoo/odoo14/odoo/modules/registry.py", line 65, in new#012 return cls.new(db_name)#012 File "/opt/odoo/odoo14/odoo/modules/registry.py", line 89, in new#012 odoo.modules.load_modules(registry.
db, force_demo, status, update_module)#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 455, in load_modules#012 processed_modules += load_marked_modules(cr, graph,#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 347, in load_marked_modules#012 loaded, processed = load_module_graph(#012 File "/opt/odoo/odoo14/odoo/modules/loading.py", line 179, in load_module_graph#012 load_openerp_module(package.name)#012 File "/opt/odoo/odoo14/odoo/modules/module.py", line 385, in load_openerp_module#012 import('odoo.addons.' + module_name)#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/init.py", line 4, in #012 from . import models#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/models/init.py", line 3, in #012 from . import project_task#012 File "/opt/odoo/odoo14-custom-addons/bryntum_gantt_enterprise/models/project_task.py", line 3, in #012 from odoo import models, Command, fields, api#012ImportError: cannot import name 'Command' from 'odoo' (/opt/odoo/odoo14/odoo/init.py)


Post by visiniaga »

there is error for import Command in models/project_task.py

after remove Command in the line 3, it works and can be upgraded
hope there is nothing important for modul Command that remove

Attachments
Screenshot 2023-07-02 11.34.27.png
Screenshot 2023-07-02 11.34.27.png (183.85 KiB) Viewed 499 times

Post by visiniaga »

now it showing error, while view bryntum

Error:

Traceback:
TypeError: Cannot read properties of undefined (reading 'addEntity')
at ModelClass.joinProject (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:191004:24)
at me.calendarManagerStore.forEach.includeFilteredOutRecords (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:193134:25)
at ModelClass.callback (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:36413:21)
at ModelClass.traverseWhile (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:21045:31)
at eval (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:21051:46)
at Array.every (<anonymous>)
at ModelClass.traverseWhile (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:21051:25)
at eval (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:21051:46)
at Array.every (<anonymous>)
at ModelClass.traverseWhile (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:21051:25)


Post by Terence »

I will check on Odoo14 if I can reproduce.


Post by Terence »

Thank you for the report!
Command is not a needed import, this will break Odoo14. You can remove that import.
https://github.com/bryntum/odoo-support/issues/115

The issue you get next is related to calendar permissions or the set calendar config in Odoo. It works fine on our demo server but obviously some users have issues with it.

To debug, could you send me the returned json of a load call?


Post by Terence »

This issue should be resolved in version 2.0.5. Will be available tomorrow in the Odoo repository.


Post by visiniaga »

Wow, thanks Terence,
As Im still difficulty checking on production database yet, will try

👍


Post by visiniaga »

Hi Terrence,

successfully upgrade to 2.0.5, but there is error when export to MSP
Error:
Uncaught TypeError: Cannot read properties of undefined (reading 'internalId')

webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:231391
Traceback:
TypeError: Cannot read properties of undefined (reading 'internalId')
at MspExport.getAssignmentsData (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:231391:46)
at MspExport.generateExportData (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:230999:24)
at MspExport.export (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:231028:23)
at GanttToolbar.onMSPExport (webpack:///./src/lib/GanttToolbar.js?:617:41)
at Button.callback (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:3803:70)
at Button.trigger (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:6949:40)
at Button.onInternalClick (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:55552:10)
at HTMLButtonElement.handler (webpack:///./node_modules/@bryntum/gantt/gantt.module.js?:14272:72)

visiniaga wrote: Tue Jul 04, 2023 3:57 pm

Wow, thanks Terence,
As Im still difficulty checking on production database yet, will try

👍

Attachments
Screenshot 2023-07-10 14.11.30.png
Screenshot 2023-07-10 14.11.30.png (508.57 KiB) Viewed 379 times

Post by visiniaga »

error when opening task

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 237, in dispatch
result = request.dispatch()
File "/opt/odoo/odoo14/odoo/http.py", line 685, in dispatch
result = self.
call_function(**self.params)
File "/opt/odoo/odoo14/odoo/http.py", line 361, in call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo14/odoo/service/model.py", line 94, in wrapper
return f(dbname, args, **kwargs)
File "/opt/odoo/odoo14/odoo/http.py", line 349, in checked_call
result = self.endpoint(
a, **kw)
File "/opt/odoo/odoo14/odoo/http.py", line 908, in call
return self.method(args, **kw)
File "/opt/odoo/odoo14/odoo/http.py", line 533, in response_wrap
response = f(
args, **kw)
File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1372, in call_kw
return self.
call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1364, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo14/odoo/api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo14/odoo/api.py", line 386, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo14/odoo/models.py", line 3011, in read
raise ValueError("Invalid field %r on model %r" % (name, self.
name))
Exception

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

Traceback (most recent call last):
File "/opt/odoo/odoo14/odoo/http.py", line 641, in handle_exception
return super(JsonRequest, self).
handle_exception(exception)
File "/opt/odoo/odoo14/odoo/http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'gantt_calendar' on model 'project.task'


Post by visiniaga »

downgrade to 2.0.1 again


Post Reply