2024-10-16 13:21:17
|
WARNING
|
server
|
odoo.modules.loading:92
Module l10n_ar demo data failed to install, installed without demo data
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 537, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 261, in _tag_function
_eval_xml(self, rec, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 188, in _eval_xml
return odoo.api.call_kw(model, method_name, args, kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 517, in call_kw
result = getattr(recs, name)(*args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/addons/l10n_ar/models/account_chart_template.py", line 60, in try_loading
return super().try_loading(template_code, company, install_demo)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/chart_template.py", line 154, in try_loading
return self._load(template_code, company, install_demo)
File "/data/build/adhoc-cicd-odoo-odoo/addons/l10n_ar/models/account_chart_template.py", line 39, in _load
res = super()._load(template_code, company, install_demo)
File "/data/build/ingadhoc-account-financial-tools/account_ux/models/chart_template.py", line 8, in _load
res = super()._load(template_code, company, install_demo)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/chart_template.py", line 213, in _load
self._load_data(data)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/chart_template.py", line 610, in _load_data
created_records[model] = self.with_context(lang='en_US').env[model]._load_records(all_records_vals, ignore_duplicates=ignore_duplicates)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5472, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5376, in _load_records_create
records = self.create(vals_list)
File "<decorator-gen-219>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 480, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account_check_printing/models/account_journal.py", line 72, in create
journals = super().create(vals_list)
File "<decorator-gen-192>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 480, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_journal.py", line 874, in create
self._fill_missing_values(vals, protected_codes=codes)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_journal.py", line 837, in _fill_missing_values
vals['default_account_id'] = self._create_default_account(company, journal_type, vals)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_journal.py", line 801, in _create_default_account
default_account = self.env['account.account'].create(default_account_vals)
File "<decorator-gen-190>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 479, in _model_create_multi
return create(self, [arg])
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_account.py", line 973, in create
.create(vals_list_for_company)
File "<decorator-gen-134>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 480, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 263, in create
threads = super(MailThread, self).create(vals_list)
File "<decorator-gen-31>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 480, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4980, in create
records = self._create(data_list)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5238, in _create
records._validate_fields(name for data in data_list for name in data['stored'])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 1598, in _validate_fields
check(self)
File "/data/build/ingadhoc-account-financial-tools/account_ux/models/account_account.py", line 20, in check_currency
for rec in self.filtered(lambda x: x.currency_id == x.company_id.currency_id):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6473, in filtered
return self.browse(rec.id for rec in self if func(rec))
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6181, in browse
ids = tuple(ids)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6473, in <genexpr>
return self.browse(rec.id for rec in self if func(rec))
File "/data/build/ingadhoc-account-financial-tools/account_ux/models/account_account.py", line 20, in <lambda>
for rec in self.filtered(lambda x: x.currency_id == x.company_id.currency_id):
AttributeError: 'account.account' object has no attribute 'company_id'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 88, in load_demo
load_data(env(su=True), idref, mode, kind='demo', package=package)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 70, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 608, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 679, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 594, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 550, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /data/build/adhoc-cicd-odoo-odoo/addons/l10n_ar/demo/exento_demo.xml:32, somewhere inside
<function model="account.chart.template" name="try_loading">
<value eval="[]"/>
<value>ar_ex</value>
<value model="res.company" eval="obj().env.ref('base.company_exento')"/>
<value name="install_demo" eval="True"/>
</function>
|