Hi there, I have an installation that has been running solid for a long time now of 6.2. It is a VM I have been able to go back to snapshot of live 6.2 after failed attempts (which are many over the last 24hours), but I am unable to get 6.4 or 7.0 functional.
I have upgraded with pip3 “tryton, trytond, and all of the other existing modules” and the versions are indeed like (ie 6.4.x or 7.0.x) with each respective try.
Example of upgrade and error going 6.2 > 6.4 :
- pip3 install --upgrade ‘trytond==6.4.x’ (all packages are done the same) on trytond VM
- trytond-admin -c /etc/tryton/trytond.conf -d tryton_test --all (clean exit)
- pip3 install --upgrade ‘tryton==6.4.x’ on machine running client (clean exit)
- On machine running tryton client from terminal run:
tryton - Prompts me and accepts my password
- Output in terminal is:
ERROR:tryton.common.common:Traceback (most recent call last):
File “/trytond/wsgi.py”, line 119, in dispatch_request
return endpoint(request, **request.view_args)
File “/trytond/protocols/dispatcher.py”, line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File “/trytond/wsgi.py”, line 86, in auth_required
return wrapped(*args, **kwargs)
File “/trytond/protocols/wrappers.py”, line 172, in wrapper
return func(request, pool, *args, **kwargs)
File “/trytond/protocols/dispatcher.py”, line 181, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File “/trytond/model/modelview.py”, line 272, in fields_view_get
result[‘arch’], result[‘fields’] = cls.parse_view(
File “/trytond/model/modelview.py”, line 427, in parse_view
viewtreeoptionals = ViewTreeOptional.search([
File “/trytond/model/modelsql.py”, line 1532, in search
cursor.execute(*select)
File “/trytond/backend/postgresql/database.py”, line 68, in execute
cursor.execute(self, sql, args)
psycopg2.errors.UndefinedTable: relation “ir_ui_view_tree_optional” does not exist
LINE 1: …“create_date”)) AS VARCHAR) AS “_timestamp” FROM "ir_ui_vie…
^Fault: relation “ir_ui_view_tree_optional” does not exist
LINE 1: …“create_date”)) AS VARCHAR) AS “_timestamp” FROM "ir_ui_vie…
^ERROR:tryton.common.common: File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 258, in do_command_line
self.do_activate()
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 255, in do_activate
self.get_preferences()
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 533, in get_preferences
self.sig_win_menu(prefs=prefs)
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 740, in sig_win_menu
screen = Screen(action[‘res_model’], mode=[‘tree’], view_ids=view_ids,
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/screen/screen.py”, line 141, in init
self.switch_view()
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/screen/screen.py”, line 582, in switch_view
self.screen_container.set(self.current_view.widget)AttributeError: ‘NoneType’ object has no attribute ‘widget’
- tryton client appears to connect to my database but display is completely empty. does not show menus/trees to the left as functional 6.2 does.
- If I attempt to type anything in the Search Box in the top left I get this error each time I type a character:
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 391, in update
CONFIG[‘client.limit’], self.menu_screen.model_name,AttributeError: ‘NoneType’ object has no attribute ‘model_name’
6.2 > 7.0
- same process as above but with the following errors
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 268, in do_command_line
self.do_activate()
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 265, in do_activate
self.get_preferences()
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 551, in get_preferences
self.sig_win_menu(prefs=prefs)
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 762, in sig_win_menu
screen = Screen(action[‘res_model’], mode=[‘tree’], view_ids=view_ids,
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/screen/screen.py”, line 52, in init
if not (MODELACCESS[model_name][‘write’]
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/common/common.py”, line 248, in getitem
return self._access[model]KeyError: ‘ir.ui.menu’
File “/home/thomas/.local/lib/python3.8/site-packages/tryton/gui/main.py”, line 403, in update
CONFIG[‘client.limit’], self.menu_screen.model_name,AttributeError: ‘NoneType’ object has no attribute ‘model_name’
While I don’t know how to fix this, I do not suspect that the problem is on the tryton client side and suspect it is a missing table or something on trytond side looking at the trace. Client connects with user and password. When I have upgraded to 7.0 it does indeed funtion correctly with the 7.0demo.tryton.org server.
If I am not mistaken 6.4 was when optional tree view came to be and I suspect the problem I am having is related to that change. Anyone got some ideas?