diff --git a/addons/website/static/src/snippets/s_website_form/000.js b/addons/website/static/src/snippets/s_website_form/000.js index 3d1ba043acb..5f73f8e0590 100644 --- a/addons/website/static/src/snippets/s_website_form/000.js +++ b/addons/website/static/src/snippets/s_website_form/000.js @@ -757,7 +757,9 @@ } const formData = new FormData(this.el); - const currentValueOfDependency = formData.get(dependencyName); + const currentValueOfDependency = ["contains", "!contains"].includes(comparator) + ? formData.getAll(dependencyName).join() + : formData.get(dependencyName); return this._compareTo(comparator, currentValueOfDependency, visibilityCondition, between); }; }, diff --git a/addons/website/views/snippets/s_website_form.xml b/addons/website/views/snippets/s_website_form.xml index 46c4b93f3fe..90dce371183 100644 --- a/addons/website/views/snippets/s_website_form.xml +++ b/addons/website/views/snippets/s_website_form.xml @@ -171,6 +171,8 @@ Is equal to Is not equal to + Contains + Doesn't contain diff --git a/doc/cla/individual/R55555.md b/doc/cla/individual/R55555.md new file mode 100644 index 00000000000..c0f5a1e3be0 --- /dev/null +++ b/doc/cla/individual/R55555.md @@ -0,0 +1,11 @@ +India, 2023-06-07 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Rithwik Pradeep rithwikpradeep999@gmail.com https://github.com/R55555