diff --git a/addons/website_hr_recruitment/__manifest__.py b/addons/website_hr_recruitment/__manifest__.py index aa0753b7016..ffd428c92f6 100644 --- a/addons/website_hr_recruitment/__manifest__.py +++ b/addons/website_hr_recruitment/__manifest__.py @@ -5,7 +5,7 @@ 'name': 'Online Jobs', 'category': 'Website/Website', 'sequence': 310, - 'version': '1.0', + 'version': '1.1', 'summary': 'Manage your online hiring process', 'description': "This module allows to publish your available job positions on your website and keep track of application submissions easily. It comes as an add-on of *Recruitment* app.", 'depends': ['hr_recruitment', 'website_mail'], diff --git a/addons/website_hr_recruitment/migrations/17.0.1.1/pre-migrate.py b/addons/website_hr_recruitment/migrations/17.0.1.1/pre-migrate.py new file mode 100644 index 00000000000..3bbc2edb05b --- /dev/null +++ b/addons/website_hr_recruitment/migrations/17.0.1.1/pre-migrate.py @@ -0,0 +1,13 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +def migrate(cr, version): + # Remove the csrf_token and its surrounding div from the + # website_hr_recruitment.apply (it was set with a t-att- breaking the + # possibility to properly edit the form, and it was actually useless). + cr.execute(r""" + UPDATE ir_ui_view + SET arch_db = REGEXP_REPLACE(arch_db::text, '