forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
30 lines (23 loc) · 770 Bytes
/
__init__.py
File metadata and controls
30 lines (23 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
# Copyright 2021 Alex Comba - Agile Business Group
from . import models
from openupgradelib import openupgrade
def rename_old_italian_module(cr):
if not openupgrade.is_module_installed(cr, "l10n_it_withholding_tax_causali"):
return
openupgrade.rename_xmlids(
cr,
[
(
"l10n_it_withholding_tax_causali.view_withholding_tax_form_causale",
"l10n_it_withholding_tax_causali.view_withholding_tax_form_reason",
),
],
)
openupgrade.update_module_names(
cr,
[
("l10n_it_withholding_tax_causali", "l10n_it_withholding_tax_reason"),
],
merge_modules=True,
)