2024-06-05 20:09:35
|
WARNING
|
server
|
odoo.modules.loading:93
Module demo_base demo data failed to install, installed without demo data
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5700, in _flush
vals = {
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5701, in <dictcomp>
f.name: convert(record, f, dirty_field_cache[f][id_])
KeyError: 60
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 698, in _tag_root
f(rec)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 333, in _tag_function
_eval_xml(self, rec, env)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/tools/convert.py", line 204, 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-ingadhoc-demo/demo_base/demo_py/sale_order.py", line 48, in _init_demo_base
new_sale = sale.with_company(company).copy()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale_loyalty/models/sale_order.py", line 51, in copy
order = super(SaleOrder, self).copy(default)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4839, in copy
record_copy = self.create(vals)
File "<decorator-gen-921>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 414, in _model_create_multi
return create(self, [arg])
File "/data/build/adhoc-cicd-odoo-enterprise/industry_fsm_sale/models/sale_order.py", line 14, in create
orders = super().create(vals)
File "<decorator-gen-920>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/ingadhoc-sale/sale_stock_ux/models/sale_order.py", line 66, in create
return super().create(vals_list)
File "<decorator-gen-411>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-enterprise/sale_subscription/models/sale_order.py", line 514, in create
orders = super().create(vals_list)
File "<decorator-gen-408>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-oca-sale-workflow/sale_order_type/models/sale.py", line 167, in create
return super().create(vals_list)
File "<decorator-gen-399>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/ingadhoc-argentina-sale/l10n_ar_sale/models/sale_order.py", line 66, in create
return super(SaleOrder, self).create(vals)
File "<decorator-gen-391>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/website_sale/models/sale_order.py", line 42, in create
return super().create(vals_list)
File "<decorator-gen-372>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order.py", line 701, in create
return super().create(vals_list)
File "<decorator-gen-140>", line 2, in create
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 275, in create
thread._message_auto_subscribe(create_values, followers_existing_policy='update')
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 3223, in _message_auto_subscribe
res = self.env['mail.followers']._get_subscription_data(doc_data, None, include_pshare=True, include_active=True)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_followers.py", line 326, in _get_subscription_data
self.env['res.partner'].flush_model()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5621, in flush_model
self._flush(fnames)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5727, in _flush
self.env[field.comodel_name].flush_model([field.inverse_name])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5621, in flush_model
self._flush(fnames)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5707, in _flush
raise AssertionError(
AssertionError: Could not find all values of sale.order(60,) to flush them
Context: {'allowed_company_ids': [1, 9]}
Cache: {'account.analytic.account.active': {23: True, 48: True}, 'account.analytic.account.bom_ids': {48: ()}, 'account.analytic.account.code': {23: None, 48: None}, 'account.analytic.account.commercial_partner_id': {23: None}, 'account.analytic.account.company_id': {23: 1, 48: 9}, 'account.analytic.account.create_date': {23: datetime.datetime(2024, 6, 5, 20, 2, 40, 325002), 48: datetime.datetime(2024, 6, 5, 20, 8, 57, 817136)}, 'account.analytic.account.create_uid': {23: 1, 48: 1}, 'account.analytic.account.currency_id': {23: 2}, 'account.analytic.account.failed_message_ids': {48: ()}, 'account.analytic.account.line_ids': {48: ()}, 'account.analytic.account.message_follower_ids': {48: ()}, 'account.analytic.account.message_ids': {}, 'account.analytic.account.message_main_attachment_id': {23: None, 48: None}, 'account.analytic.account.message_partner_ids': {}, 'account.analytic.account.name': {23: 'Internal', 48: 'V 0001-00000055'}, 'account.analytic.account.partner_id': {23: None, 48: 109}, 'account.analytic.account.plan_id': {23: 2, 48: 11}, 'account.analytic.account.production_ids': {48: ()}, 'account.analytic.account.project_ids': {48: (28,)}, 'account.analytic.account.root_plan_id': {23: 2, 48*: 11}, 'account.analytic.account.subscription_ids': {48: (55,)}, 'account.analytic.account.website_message_ids': {48: ()}, 'account.analytic.account.workcenter_ids': {48: ()}, 'account.analytic.account.write_date': {23: datetime.datetime(2024, 6, 5, 20, 7, 2, 620800), 48: datetime.datetime(2024, 6, 5, 20, 8, 57, 817136)}, 'account.analytic.account.write_uid': {23: 1, 48: 1}, 'account.analytic.line.account_id': {533: 23}, 'account.analytic.line.amount': {533: 0.0}, 'account.analytic.line.ancestor_task_id': {533: None}, 'account.analytic.line.category': {533: 'other'}, 'account.analytic.line.code': {533: None}, 'account.analytic.line.company_id': {<NewId 0x7f728bbfa680>: 1, 533: 1}, 'account.analytic.line.create_date': {533: datetime.datetime(2024, 6, 5, 20, 8, 57, 817136)}, 'account.analytic.line.create_uid': {533: 1}, 'account.analytic.line.currency_id': {<NewId 0x7f728bbfa680>: 2, 533: 2}, 'account.analytic.line.date': {533: datetime.date(2024, 6, 13)}, 'account.analytic.line.department_id': {533: None}, 'account.analytic.line.employee_id': {533: 26}, 'account.analytic.line.general_account_id': {533: None}, 'account.analytic.line.global_leave_id': {533: 11}, 'account.analytic.line.holiday_id': {533: None}, 'account.analytic.line.is_so_line_edited': {533: False}, 'account.analytic.line.journal_id': {533: None}, 'account.analytic.line.manager_id': {533: None}, 'account.analytic.line.move_line_id': {533: None}, 'account.analytic.line.name': {533: 'Tiempo libre (1/1)'}, 'account.analytic.line.order_id': {533: None}, 'account.analytic.line.partner_id': {533: None}, 'account.analytic.line.plan_id': {533: 2}, 'account.analytic.line.product_id': {533: None}, 'account.analytic.line.product_uom_id': {533: 4}, 'account.analytic.line.project_id': {533: 5}, 'account.analytic.line.ref': {533: None}, 'account.analytic.line.so_line': {533: None}, 'account.analytic.line.task_id': {533: 44}, 'account.analytic.line.timesheet_invoice_id': {533: None}, 'account.analytic.line.timesheet_invoice_type': {533: 'non_billable'}, 'account.analytic.line.unit_amount': {533: 8.0}, 'account.analytic.line.user_id': {533: 16}, 'account.analytic.line.user_timer_id': {((1, True),): {533: ()}}, 'account.analytic.line.validated': {533: False}, 'account.analytic.line.write_date': {533: datetime.datetime(2024, 6, 5, 20, 8, 57, 817136)}, 'account.analytic.line.write_uid': {533: 1}, 'account.analytic.plan.color': {11: 9}, 'account.analytic.plan.company_id': {11: 9}, 'account.analytic.plan.complete_name': {11: 'Default'}, 'account.analytic.plan.create_date': {11: datetime.datetime(2024, 6, 5, 20, 8, 23, 406427)}, 'account.analytic.plan.create_uid': {11: 1}, 'account.analytic.plan.default_applicability': {11: 'optional'}, 'account.analytic.plan.description': {11: None}, 'account.analytic.plan.name': {11: 'Default'}, 'account.analytic.plan.parent_id': {11: None}, 'account.analytic.plan.parent_path': {11: '11/'}, 'account.analytic.plan.write_date': {11: datetime.datetime(2024, 6, 5, 20, 8, 23, 406427)}, 'account.analytic.plan.write_uid': {11: 1}, 'account.fiscal.position.active': {43: True}, 'account.fiscal.position.auto_apply': {43: True}, 'account.fiscal.position.company_id': {43: 9}, 'account.fiscal.position.country_group_id': {43: None}, 'account.fiscal.position.country_id': {43: None}, 'account.fiscal.position.create_date': {43: datetime.datetime(2024, 6, 5, 20, 8, 23, 406427)}, 'account.fiscal.position.create_uid': {43: 1}, 'account.fiscal.position.foreign_vat': {43: None}, 'account.fiscal.position.is_taxcloud': {43: None}, 'account.fiscal.position.name': {43: 'Compras IVA no corresponde'}, 'account.fiscal.position.note': {43: None}, 'account.fiscal.position.sequence': {43: 0}, 'account.fiscal.position.tax.company_id': {684: 9, 685: 9, 686: 9, 687: 9, 688: 9, 689: 9}, 'account.fiscal.
...<message too long, truncated>
|
2024-06-05 20:09:35
|
ERROR
|
server
|
odoo.modules.registry:95
Failed to load registry
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 240, in load_module_graph
module._update_translations(overwrite=overwrite)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_module.py", line 956, in _update_translations
self.env['ir.module.module']._load_module_terms(mod_names, filter_lang, overwrite)
File "/data/build/adhoc-cicd-odoo-odoo/addons/website/models/ir_module_module.py", line 495, in _load_module_terms
self.env.cr.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 134, in flush
self.transaction.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 883, in flush
env_to_flush.flush_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 745, in flush_all
self._recompute_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 741, in _recompute_all
self[field.model_name]._recompute_field(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6274, in _recompute_field
field.recompute(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 636, in _compute_price_reduce_taxexcl
line.price_reduce_taxexcl = line.price_subtotal / line.product_uom_qty if line.product_uom_qty else 0.0
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1158, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, 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 622, in _compute_amount
tax_results = self.env['account.tax']._compute_taxes([line._convert_to_tax_base_line_dict()])
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 609, in _convert_to_tax_base_line_dict
taxes=self.tax_id,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 2804, in __get__
return super().__get__(records, owner)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1158, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale_loyalty/models/sale_order_line.py", line 29, in _compute_tax_id
super(SaleOrderLine, self - reward_lines)._compute_tax_id()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 415, in _compute_tax_id
line.tax_id = result
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1305, in __set__
self.write(protected_records, value)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4267, in write
return self.write_batch([(records, value)])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4288, in write_batch
return self.write_real(records_commands_list, create)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4884, in write_real
cr.execute(query, pairs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 321, 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)=(110) is not present in table "sale_order_line".
|
2024-06-05 20:09:35
|
CRITICAL
|
server
|
odoo.service.server:1347
Failed to initialize database `56133-16-0-all`.
Traceback (most recent call last):
File "/data/build/adhoc-cicd-odoo-odoo/odoo/service/server.py", line 1310, 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 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 488, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "/data/build/adhoc-cicd-odoo-odoo/odoo/modules/loading.py", line 240, in load_module_graph
module._update_translations(overwrite=overwrite)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/addons/base/models/ir_module.py", line 956, in _update_translations
self.env['ir.module.module']._load_module_terms(mod_names, filter_lang, overwrite)
File "/data/build/adhoc-cicd-odoo-odoo/addons/website/models/ir_module_module.py", line 495, in _load_module_terms
self.env.cr.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 134, in flush
self.transaction.flush()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 883, in flush
env_to_flush.flush_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 745, in flush_all
self._recompute_all()
File "/data/build/adhoc-cicd-odoo-odoo/odoo/api.py", line 741, in _recompute_all
self[field.model_name]._recompute_field(field)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6274, in _recompute_field
field.recompute(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 636, in _compute_price_reduce_taxexcl
line.price_reduce_taxexcl = line.price_subtotal / line.product_uom_qty if line.product_uom_qty else 0.0
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1158, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, 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 622, in _compute_amount
tax_results = self.env['account.tax']._compute_taxes([line._convert_to_tax_base_line_dict()])
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 609, in _convert_to_tax_base_line_dict
taxes=self.tax_id,
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 2804, in __get__
return super().__get__(records, owner)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1158, in __get__
self.recompute(record)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1370, in recompute
apply_except_missing(self.compute_value, recs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1343, in apply_except_missing
func(records)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1392, in compute_value
records._compute_field_value(self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4232, in _compute_field_value
fields.determine(field.compute, self)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 98, in determine
return needle(*args)
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale_loyalty/models/sale_order_line.py", line 29, in _compute_tax_id
super(SaleOrderLine, self - reward_lines)._compute_tax_id()
File "/data/build/adhoc-cicd-odoo-odoo/addons/sale/models/sale_order_line.py", line 415, in _compute_tax_id
line.tax_id = result
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 1305, in __set__
self.write(protected_records, value)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4267, in write
return self.write_batch([(records, value)])
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4288, in write_batch
return self.write_real(records_commands_list, create)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/fields.py", line 4884, in write_real
cr.execute(query, pairs)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/sql_db.py", line 321, 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)=(110) is not present in table "sale_order_line".
|