-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website: fix conditional visibility based on file upload
At the moment, if we try to make a website field conditionally visible based on whether a file has been uploaded, the field never appears even after uploading the file. Steps to reproduce issue - Create a new fresh DB with the website app. - Go to the Contact Us page, click on 'Edit'. - Add a File Upload field - Add another field, and set it to be conditionally visible on the File Upload field. Fix: - Create visibility comparators for files (fileSet / !fileSet), which check whether the `value.name` property is set / not set. opw-2856054 closes odoo#93756 X-original-commit: fec02f6 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by: Antoine Dupuis (andu) <andu@odoo.com>
- Loading branch information
1 parent
21a1d13
commit 0c50be8
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters