I installed a bespoke module in my Odoo V11who works perfectly with empty database. Then I import database of my old Odoo 8 with csv files.
But after it is like Odoo don't find the new models and the fields I add.
For exemple I add app_product_key in the model res_partner:
But when I tried to acces my database with xml-rpc with this field as identification I get:
2018-07-26 10:15:51,679 22263 ERROR probespoke odoo.http: Invalid field 'app_product_key' in leaf "<osv.ExtendedLeaf: ('app_product_key', '=', 'fonapp2016') on res_partner (ctx: )>"Traceback (most recent call last):File "/opt/odoo/odoo/odoo/http.py", line 118, in dispatch_rpcresult = dispatch(method, params)File "/opt/odoo/odoo/odoo/service/model.py", line 39, in dispatchres = fn(db, uid, *params)File "/opt/odoo/odoo/odoo/service/model.py", line 97, in wrapperreturn f(dbname, *args, **kwargs)File "/opt/odoo/odoo/odoo/service/model.py", line 160, in executeres = execute_cr(cr, uid, obj, method, *args, **kw)File "/opt/odoo/odoo/odoo/service/model.py", line 149, in execute_crreturn odoo.api.call_kw(recs, method, args, kw)File "/opt/odoo/odoo/odoo/api.py", line 687, in call_kwreturn call_kw_model(method, model, args, kwargs)File "/opt/odoo/odoo/odoo/api.py", line 672, in call_kw_modelresult = method(recs, *args, **kwargs)File "/opt/odoo/odoo/odoo/models.py", line 1480, in searchres = self._search(args, offset=offset, limit=limit, order=order, count=count)File "/opt/odoo/odoo/odoo/addons/base/res/res_partner.py", line 639, in _searchcount=count, access_rights_uid=access_rights_uid)File "/opt/odoo/odoo/odoo/models.py", line 3769, in _searchquery = self._where_calc(args)File "/opt/odoo/odoo/odoo/models.py", line 3564, in _where_calce = expression.expression(domain, self)File "/opt/odoo/odoo/odoo/osv/expression.py", line 668, in __init__self.parse()File "/opt/odoo/odoo/odoo/osv/expression.py", line 846, in parseraise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))ValueError: Invalid field 'app_product_key' in leaf "<osv.ExtendedLeaf: ('app_product_key', '=', 'fonapp2016') on res_partner (ctx: )>"
And I got same error for other fields I add in other module.
Why Odoo consider this fields has no-existent?
Is your module succesfully installed and found on the system? Can you update the module from the apps list?