From b253c3323ea0704233a187b3fbe223eb8081e105 Mon Sep 17 00:00:00 2001 From: sha-odoo Date: Fri, 4 Mar 2016 18:46:26 +0530 Subject: [PATCH] [IMP] l10n_nl: Added pre and post migration file --- addons/l10n_nl/__openerp__.py | 2 +- .../l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py | 7 +++++++ .../migrations/2.0/pre-set_tags_and_taxes_updatable.py | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 addons/l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py create mode 100644 addons/l10n_nl/migrations/2.0/pre-set_tags_and_taxes_updatable.py diff --git a/addons/l10n_nl/__openerp__.py b/addons/l10n_nl/__openerp__.py index d5c374cf8c5..1a5df633730 100644 --- a/addons/l10n_nl/__openerp__.py +++ b/addons/l10n_nl/__openerp__.py @@ -65,7 +65,7 @@ { 'name' : 'Netherlands - Accounting', - 'version' : '1.5', + 'version' : '2.0', 'category': 'Localization/Account Charts', 'description': """ This is the module to manage the accounting chart for Netherlands in OpenERP. diff --git a/addons/l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py b/addons/l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py new file mode 100644 index 00000000000..a37770d2c1c --- /dev/null +++ b/addons/l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py @@ -0,0 +1,7 @@ +from openerp.modules.registry import RegistryManager + + +def migrate(cr, version): + registry = RegistryManager.get(cr.dbname) + from openerp.addons.account.models.chart_template import migrate_tags_on_taxes + migrate_tags_on_taxes(cr, registry) diff --git a/addons/l10n_nl/migrations/2.0/pre-set_tags_and_taxes_updatable.py b/addons/l10n_nl/migrations/2.0/pre-set_tags_and_taxes_updatable.py new file mode 100644 index 00000000000..b9bdb2af7c5 --- /dev/null +++ b/addons/l10n_nl/migrations/2.0/pre-set_tags_and_taxes_updatable.py @@ -0,0 +1,7 @@ +from openerp.modules.registry import RegistryManager + + +def migrate(cr, version): + registry = RegistryManager.get(cr.dbname) + from openerp.addons.account.models.chart_template import migrate_set_tags_and_taxes_updatable + migrate_set_tags_and_taxes_updatable(cr, registry, 'l10n_nl')