diff --git a/openupgrade_scripts/apriori.py b/openupgrade_scripts/apriori.py index dd3f1c8a162..27686fe6f0c 100644 --- a/openupgrade_scripts/apriori.py +++ b/openupgrade_scripts/apriori.py @@ -5,6 +5,8 @@ # Renamed modules is a mapping from old module name to new module name renamed_modules = { # odoo + "purchase_requisition_sale": "purchase_alternative_sale", + "website_sale_autocomplete": "website_address_autocomplete", # odoo/enterprise # OCA/... } @@ -13,8 +15,47 @@ # preexisting module names merged_modules = { # odoo + "account_add_gln": "account", + "account_peppol_response": "account_peppol", + "base_iban": "account", + "base_vat": "base", + "delivery_stock_picking_batch": "stock_delivery", + "hr_holidays_homeworking": "hr_holidays", + "hr_homeworking": "hr", + "hr_homeworking_calendar": "hr_calendar", + "hr_hourly_cost": "hr", + "hr_org_chart": "hr", + "hr_work_entry_holidays": "hr_holidays", + "l10n_cn_city": "l10n_cn", + "l10n_dk_nemhandel": "l10n_dk", + "l10n_dk_nemhandel_response": "l10n_dk", + "l10n_dk_oioubl": "l10n_dk", + "l10n_ec_stock": "l10n_ec", + "l10n_fr_hr_work_entry_holidays": "l10n_fr_hr_holidays", + "l10n_hu_edi_receive": "l10n_hu_edi", + "l10n_latam_base": "account", + "l10n_lk_invoice": "l10n_lk", + "l10n_pl_bank_verification": "l10n_pl", + "l10n_ro_cpv_code": "l10n_ro_edi", + "l10n_ro_edi_stock_batch": "l10n_ro_edi_stock", + "l10n_sa_withholding_tax": "l10n_sa", + "l10n_tr_gib_invoice_scenarios": "l10n_tr_nilvera_einvoice", + "l10n_tr_nilvera_base_vat": "l10n_tr_nilvera", + "l10n_tr_nilvera_einvoice_extended": "l10n_tr_nilvera_einvoice", + "l10n_uy_pos": "l10n_uy", + "pos_restaurant_adyen": "pos_adyen", + "pos_restaurant_stripe": "pos_stripe", + "pos_self_order_adyen": "pos_adyen", + "pos_self_order_stripe": "pos_stripe", + "pos_self_order_viva_com": "pos_viva_com", + "stock_picking_batch": "stock", + "website_sale_collect_wishlist": "website_sale_collect", + "website_sale_comparison": "website_sale", + "website_sale_comparison_wishlist": "website_sale", + "website_sale_stock_wishlist": "website_sale_stock", + "website_sale_wishlist": "website_sale", # odoo/enterprise - # OCA/... + "iot_base": "iot", # OCA/stock-logistics-warehouse "stock_move_quantity_product_uom": "stock", } @@ -22,11 +63,26 @@ # only used here for upgrade_analysis renamed_models = { # odoo + "calendar.popover.delete.wizard": "calendar.event.archive.or.unlink.wizard", + "google.calendar.sync": "google.event.sync", + "hr.contract.type": "hr.employee.type", + "l10n_hu_edi_receive.bills.wizard": "l10n_hu_edi.receive.bills.wizard", + "l10n_tr_nilvera_einvoice_extended.tax.office": "l10n_tr.tax.office", + "purchase.requisition.alternative.warning": "purchase.alternative.warning", + "purchase.requisition.create.alternative": "purchase.alternative.create", + "stock_account.stock.valuation.report": "account.stock.valuation.report", + "website.base.unit": "product.base.unit", # OCA/... } # only used here for upgrade_analysis merged_models = { # odoo + "crm.lead2opportunity.partner": "crm.lead2opportunity.partner.mass", + "hr.leave.type": "hr.work.entry.type", + "ir.model.access": "ir.access", + "ir.rule": "ir.access", + "res.bank": "res.partner.bank", + "stock.scrap": "stock.move", # OCA/... }