From d676dce66d6f96058a6ae6b4664af3443d4210ce Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Tue, 28 Mar 2023 16:45:03 +0530 Subject: [PATCH] [MIG] account_multi_vat: Migration to 15.0 --- account_multi_vat/__manifest__.py | 2 +- account_multi_vat/models/account_tax.py | 2 +- account_multi_vat/tests/common.py | 4 +- account_multi_vat/views/report_invoice.xml | 80 +--------------------- 4 files changed, 6 insertions(+), 82 deletions(-) diff --git a/account_multi_vat/__manifest__.py b/account_multi_vat/__manifest__.py index 921347b3b..156562694 100644 --- a/account_multi_vat/__manifest__.py +++ b/account_multi_vat/__manifest__.py @@ -6,7 +6,7 @@ "summary": """ Allows setting multiple VAT numbers on any partner and select the right one depending on the fiscal position and delivery address of the invoice.""", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "development_status": "Beta", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", diff --git a/account_multi_vat/models/account_tax.py b/account_multi_vat/models/account_tax.py index e6e03eaaf..f63b53a08 100644 --- a/account_multi_vat/models/account_tax.py +++ b/account_multi_vat/models/account_tax.py @@ -18,7 +18,7 @@ class AccountTax(models.Model): comodel_name="res.country", related=False, compute="_compute_country_id", - store=False, + store=True, readonly=True, ) diff --git a/account_multi_vat/tests/common.py b/account_multi_vat/tests/common.py index 119dfdb9f..ca7d7dee5 100644 --- a/account_multi_vat/tests/common.py +++ b/account_multi_vat/tests/common.py @@ -1,10 +1,10 @@ # Copyright 2020 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase -class CommonAccountMultiVat(SavepointCase): +class CommonAccountMultiVat(TransactionCase): @classmethod def setUpClass(cls): super(CommonAccountMultiVat, cls).setUpClass() diff --git a/account_multi_vat/views/report_invoice.xml b/account_multi_vat/views/report_invoice.xml index 6da25f1b7..b29bf9576 100644 --- a/account_multi_vat/views/report_invoice.xml +++ b/account_multi_vat/views/report_invoice.xml @@ -5,93 +5,17 @@ - - - -