Daily updates from Odoo
Thursday, August 25, 2022
1 change
Resolved issues and error corrections
Users can now save spreadsheet global filters even when a data source has no selected field. The interface warns that the filter will not apply to that data source, and evaluation no longer crashes when an empty field is encountered.
Original PR description
Before this commit, it was not possible to save a filter without selecting
a field for each data source.
However, adding a data source after the definition of the filter (which
lead to an empty field for this data source) was allowed, which was
incoherent with the first point.
As it's ok to have an empty field, we allow this and warn the user that
the filter will not be applied to this data source.
This commit also fix an issue where a field could be an empty object (`{}`)
instead of `undefined`, which caused a traceback during the evaluation
of the filter.
Task-id 2959765