2024-06-07 15:01:34
|
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: 84
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-377>", 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/ingadhoc-sale/sale_stock_ux/models/sale_order.py", line 66, 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-oca-sale-workflow/sale_order_type/models/sale.py", line 167, in create
return super().create(vals_list)
File "<decorator-gen-363>", 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-357>", 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-341>", 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(84,) to flush them
Context: {'allowed_company_ids': [1, 6]}
Cache: {'account.account.account_type': {2969: 'income', 3127: 'liability_current', 2838: 'asset_receivable'}, 'account.account.allowed_journal_ids': {2969: (), 3127: (), 2838: ()}, 'account.account.analytic_distribution_required': {2969: None, 3127: None, 2838: None}, 'account.account.asset_model': {2969: None, 3127: None, 2838: None}, 'account.account.asset_type': {2969: None, 3127: 'sale', 2838: None}, 'account.account.can_create_asset': {2969: False, 3127: True, 2838: False}, 'account.account.code': {2969: '4.1.1.01.010', 3127: '2.1.3.03.010', 2838: '1.1.3.01.010'}, 'account.account.company_id': {2969: 9, 3127: 9, 2838: 9}, 'account.account.create_asset': {2969: 'no', 3127: 'no', 2838: 'no'}, 'account.account.create_date': {2969: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 3127: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 2838: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458)}, 'account.account.create_uid': {2969: 1, 3127: 1, 2838: 1}, 'account.account.currency_id': {2969: None, 3127: None, 2838: None}, 'account.account.deprecated': {2969: False, 3127: False, 2838: False}, 'account.account.form_view_ref': {2969: None, 3127: 'account_asset.view_account_asset_revenue_form', 2838: None}, 'account.account.group_id': {2969: 1206, 3127: 1194, 2838: 1170}, 'account.account.include_initial_balance': {2969: False, 3127: True, 2838: True}, 'account.account.internal_group': {2969: 'income', 3127: 'liability', 2838: 'asset'}, 'account.account.is_off_balance': {2969: False, 3127: False, 2838: False}, 'account.account.message_main_attachment_id': {2969: None, 3127: None, 2838: None}, 'account.account.multiple_assets_per_line': {2969: False, 3127: False, 2838: False}, 'account.account.name': {2969: 'Venta de mercadería', 3127: 'IVA débito fiscal', 2838: 'Deudores por ventas'}, 'account.account.non_trade': {2969: False, 3127: False, 2838: False}, 'account.account.note': {2969: None, 3127: None, 2838: None}, 'account.account.reconcile': {2969: False, 3127: False, 2838: True}, 'account.account.root_id': {2969: 52046, 3127: 50046, 2838: 49046}, 'account.account.tax_ids': {3127: ()}, 'account.account.write_date': {2969: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 3127: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 2838: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458)}, 'account.account.write_uid': {2969: 1, 3127: 1, 2838: 1}, 'account.fiscal.position.active': {43: True, 41: True, 40: True}, 'account.fiscal.position.auto_apply': {43: True, 41: True, 40: True}, 'account.fiscal.position.company_id': {43: 9, 41: 9, 40: 6}, 'account.fiscal.position.country_group_id': {43: None, 41: None, 40: None}, 'account.fiscal.position.country_id': {43: None, 41: None, 40: 234}, 'account.fiscal.position.create_date': {43: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 41: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 40: datetime.datetime(2024, 6, 7, 14, 58, 27, 694310)}, 'account.fiscal.position.create_uid': {43: 1, 41: 1, 40: 1}, 'account.fiscal.position.foreign_vat': {43: None, 41: None, 40: None}, 'account.fiscal.position.is_taxcloud': {43: None, 41: None, 40: None}, 'account.fiscal.position.name': {43: 'Compras IVA no corresponde', 41: 'Compras / Ventas al exterior', 40: 'Local - Uruguay'}, 'account.fiscal.position.note': {43: None, 41: None, 40: None}, 'account.fiscal.position.sequence': {43: 0, 41: 0, 40: 0}, 'account.fiscal.position.tax.company_id': {684: 9, 685: 9, 686: 9, 687: 9, 688: 9, 689: 9, 666: 9, 667: 9, 668: 9, 669: 9, 670: 9, 671: 9, 672: 9, 673: 9, 674: 9, 675: 9}, 'account.fiscal.position.tax.create_date': {684: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 685: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 686: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 687: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 688: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 689: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 666: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 667: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 668: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 669: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 670: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 671: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 672: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 673: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 674: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 675: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458)}, 'account.fiscal.position.tax.create_uid': {684: 1, 685: 1, 686: 1, 687: 1, 688: 1, 689: 1, 666: 1, 667: 1, 668: 1, 669: 1, 670: 1, 671: 1, 672: 1, 673: 1, 674: 1, 675: 1}, 'account.fiscal.position.tax.position_id': {684: 43, 685: 43, 686: 43, 687: 43, 688: 43, 689: 43, 666: 41, 667: 41, 668: 41, 669: 41, 670: 41, 671: 41, 672: 41, 673: 41, 674: 41, 675: 41}, 'account.fiscal.position.tax.tax_dest_active': {668: True, 666: True, 667: True, 669: True, 670: True, 671: True, 672: True, 673: True, 674: True, 675: True}, 'account.fiscal.position.tax.tax_dest_id': {684: 409, 685: 409, 686: 409, 687: 409, 688: 409, 689: 409, 666: 412, 667: 412, 668: 412, 669: 412, 670: 409, 671: 409, 672: 409, 673: 409, 674: 409, 675: 409}, 'account.fiscal.position.tax.tax_src_id': {684: 415, 685: 417, 686: 419, 687: 421, 688: 413, 689: 411, 666: 414, 667: 416, 668: 418, 669: 420, 670: 415, 671: 417, 672: 419, 673: 421, 674: 413, 675: 411}, 'account.fiscal.position.tax.write_date': {684: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 685: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 686: datetime.datetime(2024, 6, 7, 15, 0, 25, 122458), 687: datetime.datetime(2024, 6, 7, 15, 0, 2
...<message too long, truncated>
|
2024-06-07 15:01:34
|
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/addons/sale/models/sale_order.py", line 1405, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 403, in _compute_field_value
return super()._compute_field_value(field)
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_margin/models/sale_order.py", line 24, in _compute_margin
grouped_order_lines_data = self.env['sale.order.line'].read_group(
File "/data/build/adhoc-cicd-odoo-odoo/addons/analytic/models/analytic_mixin.py", line 76, in read_group
return super().read_group(domain, fields, groupby, offset, limit, orderby, lazy)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 2203, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 2302, in _read_group_raw
self._flush_search(domain, fields=fnames + groupby_fields)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4658, in _flush_search
self.env[model_name].flush_model(field_names)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5620, in flush_model
self._recompute_model(fnames)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6246, in _recompute_model
self._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_margin/models/sale_order_line.py", line 33, in _compute_margin
line.margin = line.price_subtotal - (line.purchase_price * line.product_uom_qty)
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)=(138) is not present in table "sale_order_line".
|
2024-06-07 15:01:34
|
CRITICAL
|
server
|
odoo.service.server:1347
Failed to initialize database `56330-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/addons/sale/models/sale_order.py", line 1405, in _compute_field_value
return super()._compute_field_value(field)
File "/data/build/adhoc-cicd-odoo-odoo/addons/mail/models/mail_thread.py", line 403, in _compute_field_value
return super()._compute_field_value(field)
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_margin/models/sale_order.py", line 24, in _compute_margin
grouped_order_lines_data = self.env['sale.order.line'].read_group(
File "/data/build/adhoc-cicd-odoo-odoo/addons/analytic/models/analytic_mixin.py", line 76, in read_group
return super().read_group(domain, fields, groupby, offset, limit, orderby, lazy)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 2203, in read_group
result = self._read_group_raw(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 2302, in _read_group_raw
self._flush_search(domain, fields=fnames + groupby_fields)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 4658, in _flush_search
self.env[model_name].flush_model(field_names)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 5620, in flush_model
self._recompute_model(fnames)
File "/data/build/adhoc-cicd-odoo-odoo/odoo/models.py", line 6246, in _recompute_model
self._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_margin/models/sale_order_line.py", line 33, in _compute_margin
line.margin = line.price_subtotal - (line.purchase_price * line.product_uom_qty)
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)=(138) is not present in table "sale_order_line".
|