lcc_lokavaluto_app_connection don't install on existing database:
Erreur:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 1049, in get
value = self._data[key][field][record._ids[0]]
KeyError: 1168
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1064, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 1051, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('account.invoice(1168,).has_numeric_lcc_products', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/tools/cache.py", line 88, in lookup
r = d[key]
File "/opt/odoo/custom/src/odoo/odoo/tools/func.py", line 69, in wrapper
return func(self, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fc7870220e0>, 'lcc_lokavaluto_app_connection.product_category_numeric_lcc')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/opt/odoo/custom/src/odoo/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/auto/addons/web/controllers/main.py", line 971, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/auto/addons/web/controllers/main.py", line 959, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-62>", line 2, in button_immediate_install
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module.py", line 76, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module.py", line 447, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_module.py", line 563, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo/custom/src/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 195, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name})
File "/opt/odoo/custom/src/odoo/odoo/modules/registry.py", line 321, in init_models
models[0].recompute()
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5322, in recompute
vals = {n: rec[n] for n in ns}
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5322, in <dictcomp>
vals = {n: rec[n] for n in ns}
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5169, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1068, in __get__
self.determine_value(record)
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1157, in determine_value
self.compute_value(recs)
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1135, in compute_value
self._compute_value(records)
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1126, in _compute_value
getattr(records, self.compute)()
File "<decorator-gen-357>", line 2, in _compute_has_numeric_lcc_products
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 382, in loop
result = [method(rec, *args, **kwargs) for rec in self]
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 382, in <listcomp>
result = [method(rec, *args, **kwargs) for rec in self]
File "/opt/odoo/auto/addons/lcc_lokavaluto_app_connection/models/account_invoice.py", line 19, in _compute_has_numeric_lcc_products
"lcc_lokavaluto_app_connection.product_category_numeric_lcc"
File "/opt/odoo/custom/src/odoo/odoo/api.py", line 864, in ref
return self['ir.model.data'].xmlid_to_object(xml_id, raise_if_not_found=raise_if_not_found)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_model.py", line 1453, in xmlid_to_object
t = self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_model.py", line 1437, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "<decorator-gen-26>", line 2, in xmlid_lookup
File "/opt/odoo/custom/src/odoo/odoo/tools/cache.py", line 93, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/ir_model.py", line 1426, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: lcc_lokavaluto_app_connection.product_category_numeric_lcc