summaryrefslogtreecommitdiff
path: root/addons/l10n_nl
diff options
context:
space:
mode:
authorsha-odoo <sha@odoo.com>2016-03-04 18:46:26 +0530
committerpvy <pvy@odoo.com>2016-03-23 14:54:25 +0100
commitb253c3323ea0704233a187b3fbe223eb8081e105 (patch)
tree9c9aa76c66efaeafbfc1fffd7915afd5ae5efa43 /addons/l10n_nl
parent1c92a88003491966c7577839c4cea58ef71f244c (diff)
[IMP] l10n_nl: Added pre and post migration file
Diffstat (limited to 'addons/l10n_nl')
-rw-r--r--addons/l10n_nl/__openerp__.py2
-rw-r--r--addons/l10n_nl/migrations/2.0/post-migrate_tags_on_taxes.py7
-rw-r--r--addons/l10n_nl/migrations/2.0/pre-set_tags_and_taxes_updatable.py7
3 files changed, 15 insertions, 1 deletions
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')