diff --git a/intrastat_base/__manifest__.py b/intrastat_base/__manifest__.py index ec74e37..3c90b43 100644 --- a/intrastat_base/__manifest__.py +++ b/intrastat_base/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Intrastat Reporting Base", - "version": "13.0.1.1.0", + "version": "13.0.1.1.1", "category": "Intrastat", "license": "AGPL-3", "summary": "Base module for Intrastat reporting", diff --git a/intrastat_base/data/country_data.xml b/intrastat_base/data/country_data.xml index cb950e6..bb7b997 100644 --- a/intrastat_base/data/country_data.xml +++ b/intrastat_base/data/country_data.xml @@ -64,7 +64,8 @@ - + + diff --git a/intrastat_base/migrations/13.0.1.1.1/post-migration.py b/intrastat_base/migrations/13.0.1.1.1/post-migration.py new file mode 100644 index 0000000..ed35cf4 --- /dev/null +++ b/intrastat_base/migrations/13.0.1.1.1/post-migration.py @@ -0,0 +1,17 @@ +# Copyright 2021 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import SUPERUSER_ID, api + + +def migrate(cr, version): + if not version: + return + + with api.Environment.manage(): + env = api.Environment(cr, SUPERUSER_ID, {}) + uk_country = env.ref("base.uk") + # Brexit... bye bye, we'll miss you guys! + if uk_country.intrastat: + uk_country.write({"intrastat": False})