From a855f47b3bb75ec60efc893b3d233638093b00dd Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Tue, 19 Nov 2019 17:37:35 +0000 Subject: [PATCH] [FIX] website_form: website form type in form parameters In 13.0 odoo/odoo@6404233bb09 adds a new website_form_key field that was not taken into account when creating a form from website studio. This would cause that when editing the form, we would not see it in the list of form type, and so think it was doing another action that the current one. And if saved that could cause an issue because the form is now for doing something else and no way to change it back. With this changeset, we get back to what was before 13.0 and display a model in the "Change Form Parameters" modal even if it has no associated form in the registry (through a website_form_key). opw-2118567 closes #40533 closes odoo/odoo#40578 X-original-commit: 6337a04b73e8030b13d5338cee8c045006c21eae Signed-off-by: Nicolas Lempereur (nle) --- addons/website_form/static/src/js/website_form_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_form/static/src/js/website_form_editor.js b/addons/website_form/static/src/js/website_form_editor.js index bde1b8e736b..b3960224e04 100644 --- a/addons/website_form/static/src/js/website_form_editor.js +++ b/addons/website_form/static/src/js/website_form_editor.js @@ -97,7 +97,7 @@ odoo.define('website_form_editor', function (require) { model: "ir.model", method: "search_read", args: [ - [['website_form_access', '=', true], ['website_form_key', '!=', false]], + [['website_form_access', '=', true]], ['id', 'model', 'name', 'website_form_label', 'website_form_key'] ], }).then(function (models) {