-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy path__init__.py
46 lines (41 loc) · 1.28 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from . import models
from . import wizard
from odoo import api, SUPERUSER_ID
from openupgradelib import openupgrade
renamed_view_xml_ids = (
(
"beesdoo_product.purchase_product_edit_price",
"sale_adapt_price_wizard.purchase_product_edit_price",
),
(
"beesdoo_product.menu_purchase_edit_price",
"sale_adapt_price_wizard.menu_purchase_edit_price",
),
(
"beesdoo_product.sale_product_edit_price",
"sale_adapt_price_wizard.sale_product_edit_price",
),
(
"beesdoo_product.menu_sale_edit_price",
"sale_adapt_price_wizard.menu_sale_edit_price",
),
(
"beesdoo_product.purchase_product_edit_price",
"sale_adapt_price_wizard.purchase_product_edit_price",
),
(
"beesdoo_product.purchase_product_edit_price",
"sale_adapt_price_wizard.purchase_product_edit_price",
),
(
"beesdoo_product.product_template_edit_price_tree_view",
"sale_adapt_price_wizard.product_template_edit_price_tree_view",
),
(
"beesdoo_product.adapt_sales_price_wizard",
"sale_adapt_price_wizard.adapt_sales_price_wizard",
),
)
def rename_xml_ids(cr):
env = api.Environment(cr, SUPERUSER_ID, {})
openupgrade.rename_xmlids(env.cr, renamed_view_xml_ids)