diff --git a/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py b/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py index c16b384f4e9..b15707df311 100644 --- a/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py +++ b/openupgrade_scripts/scripts/base/18.0.1.3/pre-migration.py @@ -95,3 +95,8 @@ def migrate(cr, version): _fix_list_view_mode(cr) _fix_serbian_res_lang_record(cr) _fix_company_layout_background(cr) + # Crons created before 11.0 lack the XML ID of their server action, + # referenced by the stock and mrp procurement menus since 18.0 + openupgrade.add_inherits_parent_xmlids( + cr, "ir.cron", "ir.actions.server", "ir_actions_server_id" + )