diff --git a/addons/web/static/src/search/with_search/with_search.js b/addons/web/static/src/search/with_search/with_search.js index 148f8ecf510..3c052bd2cf7 100644 --- a/addons/web/static/src/search/with_search/with_search.js +++ b/addons/web/static/src/search/with_search/with_search.js @@ -68,7 +68,7 @@ WithSearch.props = { display: { type: Object, optional: true }, // search query elements - comparison: { validate: () => true, optional: true }, // fix problem with validation with type: [Object, null] + comparison: { type: [Object, { value: null }], optional: true }, // Issue OWL: https://github.com/odoo/owl/issues/910 context: { type: Object, optional: true }, domain: { type: Array, element: [String, Array], optional: true }, diff --git a/addons/web/static/src/views/standard_view_props.js b/addons/web/static/src/views/standard_view_props.js index 92951708c35..e01e2575ce1 100644 --- a/addons/web/static/src/views/standard_view_props.js +++ b/addons/web/static/src/views/standard_view_props.js @@ -20,7 +20,7 @@ export const standardViewProps = { arch: { type: String }, bannerRoute: { type: String, optional: true }, className: { type: String, optional: true }, - comparison: { validate: () => true }, // fix problem with validation with type: [Object, null] + comparison: { type: [Object, { value: null }], optional: true }, // Issue OWL: https://github.com/odoo/owl/issues/910 context: { type: Object }, createRecord: { type: Function, optional: true },