mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-26 23:42:07 +02:00
11 lines
388 B
Python
11 lines
388 B
Python
def migrate(cr, version):
|
|
|
|
cr.execute("""
|
|
UPDATE account_tax
|
|
SET l10n_it_exempt_reason = CASE
|
|
WHEN l10n_it_exempt_reason = 'N2' THEN 'N2.2'
|
|
WHEN l10n_it_exempt_reason = 'N3' THEN 'N3.6'
|
|
WHEN l10n_it_exempt_reason = 'N6' THEN 'N6.9'
|
|
END
|
|
WHERE l10n_it_exempt_reason IN ('N2', 'N3', 'N6')
|
|
""")
|