Hi,
I have odoo 8.0 running on ubuntu 16. I migrated it to a new server in the following order
1. I installed odoo 8.0 on the new server.
2. Restored the database to the new server.
3. Copied my custom addons to the new server.
4. Edited /etc/odoo/openerp-server.conf and added the path to my custom modules.
All goes well. But when I login I receive the following error.
Odoo Server ErrorTraceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 544, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 581, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 317, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call return self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 810, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 410, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 878, in load_needaction return request.session.model('ir.ui.menu').get_needaction_data(menu_ids, request.context) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 915, in proxy result = meth(cr, request.uid, *args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_ui_menu.py", line 345, in get_needaction_data res[menu.id]['needaction_counter'] = obj._needaction_count(cr, uid, dom, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_needaction.py", line 64, in _needaction_count res = self.search(cr, uid, (domain or []) + dom, limit=100, order='id DESC', context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1650, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4690, in _search query = self._where_calc(cr, user, args, context=context) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4501, in _where_calc e = expression.expression(cr, user, domain, self, context) File "/usr/lib/python2.7/dist-packages/openerp/osv/expression.py", line 662, in __init__ self.parse(cr, uid, context=context) File "/usr/lib/python2.7/dist-packages/openerp/osv/expression.py", line 830, in parse raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))ValueError: Invalid field 'project_task_visibility' in leaf "<osv.ExtendedLeaf: ('project_task_visibility', '=', 'see_all_task'
Am I missing something? Please help
You can grep project_task_visibility.*field and restart your server with -u of this module ...
Are you sûre that you havé all your module in addons-path ?
Thank you all, I solved the problem, it was a very very tiny thing: The Locale settings. I changed that and everything is now perfect.