El 21/07/16 a les 22:04, Marko Randjelovic ha escrit:
On Thursday, July 21, 2016 at 9:59:22 AM UTC+2, Sergi Almacellas
Abellana wrote:

    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 <http://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 <http://r.id>, method(r, name)) for r in
    records)
    >   File "/trytond/model/fields/function.py", line 86, in <genexpr>
    >     return dict((r.id <http://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
    <http://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.


In meantime I was using tryton 3.8 and imported all modules. When I run
your command I get:

(venv) mr@debian:~/training/trytond4$ bin/trytond-admin -d test4 --all
-c ../trytond4.conf
Traceback (most recent call last):
  File "bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/mr/training/trytond4/trytond/admin.py", line 48, in run
    Pool(db_name).init(update=options.update, lang=lang)
  File "/home/mr/training/trytond4/trytond/pool.py", line 155, in init
    lang=lang)
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line
429, in load_modules
    _load_modules()
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line
396, in _load_modules
    graph = create_graph(module_list)[0]
  File "/home/mr/training/trytond4/trytond/modules/__init__.py", line
191, in create_graph
    - set((p[0] for p in packages))))
Exception: Missing dependencies: [u'purchase_request']

You have to explicity install purchase request as is a new dependency on version 4.0. So the command will be:

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



--
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/66cce13a-6c4b-7472-a81e-b95ab0770a44%40koolpi.com.

Reply via email to