[FIX] website_form: website form type in form parameters
In 13.0 odoo/odoo@6404233bb0 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>
This commit is contained in:
committed by
fw-bot
parent
169b45d0a2
commit
a855f47b3b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user