Hi everybody.
I've created some personalizations in Odoo Studio that I'd like to migrate to my productive database.
I've exported and afterwards, imported the modules using the tool provided by Studio, but I keep getting the same error:
Odoo Server Error
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup r = d[key] File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 69, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.rule', <function IrRule._compute_domain at 0x7f7cd6ed9c80>, 2, False, 'base.import.module', 'write', ((1,),)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1326, in call_button action = self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1314, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base_import_module/models/base_import_module.py", line 24, in import_module self.write({'state': 'done', 'import_message': res[0]}) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3471, in write self.check_access_rule('write') File "/usr/lib/python3/dist-packages/odoo/models.py", line 3231, in check_access_rule invalid = self - self._filter_access_rules_python(operation) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3299, in _filter_access_rules_python dom = self.env['ir.rule']._compute_domain(self._name, operation) File "<decorator-gen-49>", line 2, in _compute_domain File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_rule.py", line 142, in _compute_domain rules = self._get_rules(model_name, mode=mode) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_rule.py", line 132, in _get_rules self._cr.execute(query, (model_name, self._uid)) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 168, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 245, in execute res = self._obj.execute(query, params) psycopg2.errors.InFailedSqlTransaction: transacción abortada, las órdenes serán ignoradas hasta el fin de bloque de transacción