2024-12-18 19:11:59
|
WARNING
|
server
|
odoo.modules.loading:93
Module l10n_ar_tax 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 437, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5467, 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 5371, in _load_records_create
records = self.create(vals_list)
File "<decorator-gen-231>", 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/purchase/models/account_invoice.py", line 167, in create
moves = super(AccountMove, self).create(vals_list)
File "<decorator-gen-197>", 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_move.py", line 3151, in create
moves = super().create(vals_list)
File "<decorator-gen-139>", 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 268, 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 4975, in create
records = self._create(data_list)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5218, in _create
field.create([
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4482, in create
self.write_batch(record_values, True)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4508, in write_batch
self.write_real(records_commands_list, create)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4703, in write_real
flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4658, in flush
comodel.create(to_create)
File "<decorator-gen-201>", 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_move_line.py", line 1494, in create
lines = super().create([self._sanitize_vals(vals) for vals in vals_list])
File "<decorator-gen-162>", 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/analytic/models/analytic_mixin.py", line 160, in create
return super().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 4923, in create
new_vals_list = self._prepare_create_values(vals_list)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_move_line.py", line 1427, in _prepare_create_values
result_vals_list = super()._prepare_create_values(vals_list)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5080, in _prepare_create_values
self._add_precomputed_values(result_vals_list)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5117, in _add_precomputed_values
vals[fname] = field.convert_to_write(record[fname], self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6999, in __getitem__
return self._fields[key].__get__(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 3043, in __get__
return super().__get__(records, owner)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1291, in __get__
self.compute_value(recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1473, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5238, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 110, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/account/models/account_move_line.py", line 865, in _compute_tax_ids
line.tax_ids = line._get_computed_taxes()
File "/data/build/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/models/account_move_line.py", line 23, in _get_computed_taxes
taxes += self.move_id.fiscal_position_id._l10n_ar_add_taxes(self.partner_id, self.company_id, date, 'perception')
File "/data/build/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/models/account_fiscal_position.py", line 32, in _l10n_ar_add_taxes
partner_tax = fp_tax._get_missing_taxes(partner, date)
File "/data/build/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/models/account_fiscal_position_l10n_ar_tax.py", line 48, in _get_missing_taxes
taxes += rec._get_tax_from_ws(partner, date)
File "/data/build/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/models/account_fiscal_position_l10n_ar_tax.py", line 100, in _get_tax_from_ws
aliquot, ref = getattr(self, '_get_%s_data' % self.webservice)(partner, date, to_date)
File "/data/build/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/models/account_fiscal_position_l10n_ar_tax.py", line 201, in _get_rentas_cordoba_data
json_body = r.json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
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 89, 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 71, 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/odoo-argentina-ce-ingadhoc-odoo-argentina/l10n_ar_tax/demo/account_move_demo.xml:22, somewhere inside
<record id="demo_invoice_adhoc_cordoba" model="account.move" context="{'allowed_company_ids': [ref('base.company_ri')]}">
<field name="partner_id" ref="res_partner_adhoc_cordoba"/>
<field name="invoice_user_id" ref="base.user_demo"/>
<field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
<field name="move_type">out_invoice</field>
<field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="invoice_line_ids" eval="[ (0, 0, {'product_id': ref('product.product_product_27'), 'price_unit': 642.0, 'quantity': 5}), (0, 0, {'product_id': ref('l10n_ar.product_product_telefonia'), 'price_unit': 250.0, 'quantity': 1}), (0, 0, {'product_id': ref('product.product_product_25'), 'price_unit': 3245.0, 'quantity': 2}), ]"/>
</record>
|