mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
13 lines
342 B
Python
13 lines
342 B
Python
# Copyright 2020 Tecnativa - Pedro M. Baeza
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
from openupgradelib import openupgrade
|
|
|
|
_field_renames = [
|
|
('qc.inspection', 'qc_inspection', 'product', 'product_id'),
|
|
]
|
|
|
|
|
|
@openupgrade.migrate()
|
|
def migrate(env, version):
|
|
openupgrade.rename_fields(env, _field_renames)
|