El 20/07/16 a les 13:26, Marko Randjelovic ha escrit:
Hi,

When I tried to connect from tryton4 client to trytond4, I've got this
two errors. First error is occuring twice (it occurs again after i press
'Close' and after I press 'Close' again it occurs the second error.
Tryton 3.8 was working fine.



Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 59, in rpc
    request, database_name, *request.params)
  File "/trytond/wsgi.py", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 40, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 201, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/res/user.py", line 359, in get_preferences
    preferences = cls._get_preferences(user, context_only=context_only)
  File "/trytond/modules/company/company.py", line 165, in _get_preferences
    context_only=context_only)
  File "/trytond/res/user.py", line 336, in _get_preferences
    res[field] = getattr(user, field)
  File "/trytond/model/fields/field.py", line 234, in __get__
    return inst.__getattr__(self.name)
  File "/trytond/model/modelstorage.py", line 1352, in __getattr__
    read_data = self.read(list(ids), ffields.keys())
  File "/trytond/modules/company/company.py", line 214, in read
    result = super(User, cls).read(ids, fields_names=fields_names)
  File "/trytond/model/modelsql.py", line 762, in read
    getter_results = field.get(ids, cls, field_list, values=result)
  File "/trytond/model/fields/function.py", line 92, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 92, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 86, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 86, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/res/user.py", line 172, in get_pyson_menu
    Action.get_action_values(self.menu.type, [self.menu.id])[0])
  File "/trytond/ir/action.py", line 97, in get_action_values
    return Action.read(action_ids, list(columns))
  File "/trytond/model/modelsql.py", line 692, in read
    order_by=history_order, limit=history_limit))
OperationalError: no such column: a.context_model

It seems that your database is not sync with the running code, so you must upgrade all the modules in the database using:

trytond-admin -d <db> --all -c <config_file>

Where <db> is the name or your database and <config_file> the configuration file you are using to run trytond.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/78fe9e3e-19be-50e0-7772-4c7b529143f7%40koolpi.com.

Reply via email to