forked from OCA/odoo-module-migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmigrate_110_120.py
50 lines (44 loc) · 1.84 KB
/
migrate_110_120.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
47
48
49
50
# Copyright (C) 2019 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo_module_migrate.base_migration_script import BaseMigrationScript
# TODO
# All <label> elements in views must have a for="" attribute.
# All <filter> elements in search views must have a name attribute.
# All <button> elements in a tree view should have a string attribute
# for accessibility.
_TEXT_REPLACES = {
".py": {
"from odoo.addons.base.res": "from odoo.addons.base.models",
"from odoo.addons.base.ir": "from odoo.addons.base.models",
}
}
_DEPRECATED_MODULES = [
("account_asset", "oca_moved", "account_asset_management",
"Moved to OCA/account-financial-tools"),
("account_budget", "removed"),
("account_cash_basis_base_account", "merged", "account"),
("account_invoicing", "merged", "account"),
("anonymization", "removed"),
("auth_crypt", "merged", "base"),
("base_vat_autocomplete", "renamed", "partner_autocomplete"),
("l10n_be_intrastat", "removed"),
("l10n_be_intrastat_2019", "removed"),
("mrp_repair", "removed"),
("pos_data_drinks", "removed"),
("product_extended", "removed"),
("rating_project", "removed"),
("report_intrastat", "removed"),
("sale_order_dates", "merged", "sale"),
("sale_payment", "merged", "sale"),
("sale_service_rating", "merged", "sale_timesheet"),
("web_planner", "merged", "web"),
("website_forum_doc", "removed"),
("website_quote", "merged", "sale_quotation_builder"),
("website_rating_project", "removed"),
("website_sale_options", "removed"),
("website_sale_stock_options", "removed"),
]
class MigrationScript(BaseMigrationScript):
_TEXT_REPLACES = _TEXT_REPLACES
_DEPRECATED_MODULES = _DEPRECATED_MODULES