forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_it_causali_pagamento: modify casuale.pagamento records acc…
- Loading branch information
Showing
5 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
l10n_it_causali_pagamento/migrations/12.0.1.1.0/post-migrate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2020 Alex Comba - Agile Business Group | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import api, SUPERUSER_ID | ||
|
||
|
||
def migrate(cr, version): | ||
"""Rename: | ||
code from Z to ZO | ||
description corresponding to code L | ||
""" | ||
if not version: | ||
return | ||
with api.Environment.manage(): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
env.ref('l10n_it_causali_pagamento.z').write({'code': 'ZO'}) | ||
name = ( | ||
"Redditi derivanti dall’utilizzazione economica di opere " | ||
"dell’ingegno, di brevetti industriali e di processi, formule e " | ||
"informazioni relativi a esperienze acquisite in campo " | ||
"industriale, commerciale o scientifico, che sono percepiti dagli " | ||
"aventi causa a titolo gratuito (ad es. eredi e " | ||
"legatari dell’autore e inventore)") | ||
env.ref('l10n_it_causali_pagamento.l').write({'name': name}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
* Lorenzo Battistini <[email protected]> | ||
* Alex Comba <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters