summaryrefslogtreecommitdiff
path: root/addons/l10n_nl/migrations
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/migrations
parent1c92a88003491966c7577839c4cea58ef71f244c (diff)
[IMP] l10n_nl: Added pre and post migration file
Diffstat (limited to 'addons/l10n_nl/migrations')
-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
2 files changed, 14 insertions, 0 deletions
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')