2024-11-21 16:59:43
|
WARNING
|
server
|
odoo.modules.loading:93
Module demo_base_minimal 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 556, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 280, in _tag_function
_eval_xml(self, rec, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 205, in _eval_xml
return odoo.api.call_kw(model, method_name, args, kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 464, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 435, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/data/build/ingadhoc-demo-demo/demo_base_minimal/demo_py/sale_order.py", line 109, in _init_demo_base
invoices = sale_a._create_invoices(final=True)
File "/data/build/ingadhoc-sale/sale_ux/models/sale_order.py", line 211, in _create_invoices
invoices = super()._create_invoices(grouped=grouped, final=final, date=date)
File "/data/build/ingadhoc-argentina-sale/l10n_ar_sale/models/sale_order.py", line 130, in _create_invoices
invoices = super()._create_invoices(grouped=grouped, final=final, date=date)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 1326, in _create_invoices
raise UserError(self._nothing_to_invoice_error_message())
odoo.exceptions.UserError: Cannot create an invoice. No items are available to invoice.
To resolve this issue, please ensure that:
• The products have been delivered before attempting to invoice them.
• The invoicing policy of the product is configured correctly.
If you want to invoice based on ordered quantities instead:
• For consumable or storable products, open the product, go to the 'General Information' tab and change the 'Invoicing Policy' from 'Delivered Quantities' to 'Ordered Quantities'.
• For services (and other products), change the 'Invoicing Policy' to 'Prepaid/Fixed Price'.
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 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 569, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /data/build/ingadhoc-demo-demo/demo_base_minimal/demo/init_demo_py.xml:6, somewhere inside
<function model="sale.order" name="_init_demo_base"/>
|
2024-11-21 16:59:43
|
ERROR
|
server
|
odoo.modules.registry:119
Failed to load registry
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/registry.py", line 114, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 480, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 254, in load_module_graph
env.cr.commit()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 472, in commit
self.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 137, in flush
self.transaction.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 863, in flush
env_to_flush.flush_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 721, in flush_all
self._recompute_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 717, in _recompute_all
self[field.model_name]._recompute_field(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6930, in _recompute_field
field.recompute(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 1715, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 647, in _compute_amount_to_invoice
order.amount_to_invoice = order.amount_total - invoices._get_sale_order_invoiced_amount(order)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 1715, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 466, in _compute_amounts
tax_results = order.env['account.tax']._compute_taxes([
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 467, in <listcomp>
line._convert_to_tax_base_line_dict()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 612, in _convert_to_tax_base_line_dict
price_subtotal=self.price_subtotal,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/ingadhoc-argentina-sale/l10n_ar_sale/models/sale_order_line.py", line 142, in _compute_amount
super(SaleOrderLine, line)._compute_amount()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 623, in _compute_amount
line._convert_to_tax_base_line_dict()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 608, in _convert_to_tax_base_line_dict
taxes=self.tax_id,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 2907, in __get__
return super().__get__(records, owner)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 443, in _compute_tax_id
line.tax_id = result
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1302, in __set__
self.write(protected_records, value)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4337, in write
self.write_batch([(records, value)])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4358, in write_batch
self.write_real(records_commands_list, create)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4945, in write_real
cr.execute(SQL(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 332, in execute
res = self._obj.execute(query, params)
psycopg2.errors.ForeignKeyViolation: insert or update on table "account_tax_sale_order_line_rel" violates foreign key constraint "account_tax_sale_order_line_rel_sale_order_line_id_fkey"
DETAIL: Key (sale_order_line_id)=(149) is not present in table "sale_order_line".
|
2024-11-21 16:59:43
|
CRITICAL
|
server
|
odoo.service.server:1350
Failed to initialize database `93731-17-0-all`.
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/service/server.py", line 1313, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/registry.py", line 114, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 480, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 254, in load_module_graph
env.cr.commit()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 472, in commit
self.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 137, in flush
self.transaction.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 863, in flush
env_to_flush.flush_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 721, in flush_all
self._recompute_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 717, in _recompute_all
self[field.model_name]._recompute_field(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6930, in _recompute_field
field.recompute(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 1715, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 647, in _compute_amount_to_invoice
order.amount_to_invoice = order.amount_total - invoices._get_sale_order_invoiced_amount(order)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 1715, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 424, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 466, in _compute_amounts
tax_results = order.env['account.tax']._compute_taxes([
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 467, in <listcomp>
line._convert_to_tax_base_line_dict()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 612, in _convert_to_tax_base_line_dict
price_subtotal=self.price_subtotal,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/ingadhoc-argentina-sale/l10n_ar_sale/models/sale_order_line.py", line 142, in _compute_amount
super(SaleOrderLine, line)._compute_amount()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 623, in _compute_amount
line._convert_to_tax_base_line_dict()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 608, in _convert_to_tax_base_line_dict
taxes=self.tax_id,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 2907, in __get__
return super().__get__(records, owner)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1152, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1367, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1340, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1389, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4894, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 102, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 443, in _compute_tax_id
line.tax_id = result
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1302, in __set__
self.write(protected_records, value)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4337, in write
self.write_batch([(records, value)])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4358, in write_batch
self.write_real(records_commands_list, create)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4945, in write_real
cr.execute(SQL(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 332, in execute
res = self._obj.execute(query, params)
psycopg2.errors.ForeignKeyViolation: insert or update on table "account_tax_sale_order_line_rel" violates foreign key constraint "account_tax_sale_order_line_rel_sale_order_line_id_fkey"
DETAIL: Key (sale_order_line_id)=(149) is not present in table "sale_order_line".
|