Hi,
i upgraded from Odoo 16 to 17 and wanted to add a Company Branch to my Main Company.
I dont have any other companies and this is the first time i try to add a Branch (anyway company branch is a new feature in odoo 17 as far as i know).
If i want to save my created company branch i get the following error.
Did someone already tried the branch function with an upgraded version?
regards
Michael
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 99, in lookup
r = d[key]
File "", line 2, in __getitem__
File "/home/odoo/src/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/tools/lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.model.data', , 'account.1_general')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 1765, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/odoo/service/model.py", line 135, in retrying
env.cr.flush() # submit the changes to the database
File "/home/odoo/src/odoo/odoo/sql_db.py", line 138, in flush
self.precommit.run()
File "/home/odoo/src/odoo/odoo/tools/misc.py", line 1220, in run
func()
File "/home/odoo/src/odoo/addons/account/models/company.py", line 272, in try_loading
self.env['account.chart.template']._load(
File "/home/odoo/src/odoo/addons/point_of_sale/models/chart_template.py", line 22, in _load
result = super()._load(template_code, company, install_demo)
File "/home/odoo/src/odoo/addons/account/models/chart_template.py", line 191, in _load
self._load_data(data)
File "/home/odoo/src/odoo/addons/account/models/chart_template.py", line 515, in _load_data
'values': deref(record, self.env[model]),
File "/home/odoo/src/odoo/addons/account/models/chart_template.py", line 438, in deref
raise e
File "/home/odoo/src/odoo/addons/account/models/chart_template.py", line 435, in deref
values[fname] = self.ref(value).id if value not in ('', 'False', 'None') else False
File "/home/odoo/src/odoo/addons/account/models/chart_template.py", line 945, in ref
or self.env.ref(f"account.{self.env.company.parent_ids[0].id}_{xmlid}", raise_if_not_found)
File "/home/odoo/src/odoo/odoo/api.py", line 579, in ref
res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py", line 2189, in _xmlid_to_res_model_res_id
return self._xmlid_lookup(xmlid)
File "", line 2, in _xmlid_lookup
File "/home/odoo/src/odoo/odoo/tools/cache.py", line 104, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_model.py", line 2182, in _xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: account.1_general