summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-11-19 17:37:35 +0000
committerfw-bot <otis@odoo.com>2019-11-20 16:28:58 +0000
commita855f47b3bb75ec60efc893b3d233638093b00dd (patch)
tree417f979bcde421f7c4aecf477494927addf478cb
parent169b45d0a2c5687aa68690205c09ad59dc6b1d13 (diff)
[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) <nle@odoo.com>
-rw-r--r--addons/website_form/static/src/js/website_form_editor.js2
1 files changed, 1 insertions, 1 deletions
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) {