mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[9.0][MIG] Improove migration from v8 of base_report_to_printer (#71)
* [9.0][MIG] Improove migration from v8 of base_report_to_printer * REF use shorten headers
This commit is contained in:
committed by
Moises Lopez - https://www.vauxoo.com/
parent
1e47944e30
commit
4b07a14937
29
base_report_to_printer/migrations/9.0.1.0.0/pre-migration.py
Normal file
29
base_report_to_printer/migrations/9.0.1.0.0/pre-migration.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2016 ADHOC SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
xmlid_renames = [
|
||||
(
|
||||
'base_report_to_printer.res_groups_printingprintoperator0',
|
||||
'base_report_to_printer.printing_server_group_manager',
|
||||
),
|
||||
(
|
||||
'base_report_to_printer.ir_model_access_printingprintergroup1',
|
||||
'base_report_to_printer.printing_printer_group_manager',
|
||||
),
|
||||
(
|
||||
'base_report_to_printer.ir_model_access_printing_action',
|
||||
'base_report_to_printer.printing_action_group_manager',
|
||||
),
|
||||
(
|
||||
'base_report_to_printer.ir_model_access_printingreportxmlaction',
|
||||
'base_report_to_printer.printing_report_xml_action_group_manager',
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(cr, version):
|
||||
openupgrade.rename_xmlids(cr, xmlid_renames)
|
||||
Reference in New Issue
Block a user