From d33aca38c3a862047379d52aa0f3530fb1e02b06 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Fri, 2 Sep 2022 09:11:25 +0000 Subject: [PATCH] [FIX] account: fix template consistency check plus_report_line_ids and minus_report_line_ids have now been replaced by plus_report_expression_ids and minus_report_expression_ids on tax templates. The test was failing locally but not on runbot, because it was missing the post_install tag. closes odoo/odoo#99462 Signed-off-by: Laurent Smet --- addons/account/tests/test_templates_consistency.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/tests/test_templates_consistency.py b/addons/account/tests/test_templates_consistency.py index ac60a349693..ec052543495 100644 --- a/addons/account/tests/test_templates_consistency.py +++ b/addons/account/tests/test_templates_consistency.py @@ -1,7 +1,9 @@ # -*- coding: utf-8 -*- +from odoo.tests import tagged from odoo.tests.common import TransactionCase +@tagged('post_install', '-at_install') class AccountingTestTemplConsistency(TransactionCase): '''Test the templates consistency between some objects like account.account when account.account.template. ''' @@ -47,7 +49,7 @@ class AccountingTestTemplConsistency(TransactionCase): ''' self.check_fields_consistency('account.tax.template', 'account.tax', exceptions=['chart_template_id']) self.check_fields_consistency('account.tax', 'account.tax.template', exceptions=['company_id', 'country_id', 'real_amount']) - self.check_fields_consistency('account.tax.repartition.line.template', 'account.tax.repartition.line', exceptions=['plus_report_line_ids', 'minus_report_line_ids']) + self.check_fields_consistency('account.tax.repartition.line.template', 'account.tax.repartition.line', exceptions=['plus_report_expression_ids', 'minus_report_expression_ids']) self.check_fields_consistency('account.tax.repartition.line', 'account.tax.repartition.line.template', exceptions=['tag_ids', 'country_id', 'company_id', 'sequence']) def test_fiscal_position_fields(self):