mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
14 lines
421 B
Python
14 lines
421 B
Python
# Copyright 2020 ForgeFlow <http://www.forgeflow.com>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
from openupgradelib import openupgrade
|
|
|
|
_column_renames = {
|
|
"intrastat_product_declaration": [("month", None)],
|
|
"intrastat_product_computation_line": [("invoice_line_id", None)],
|
|
}
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
openupgrade.rename_columns(env.cr, _column_renames)
|