[REF] web: improve validation of comparison

Part-of: odoo/odoo#118057
This commit is contained in:
Mathieu Duckerts-Antoine
2023-04-13 17:57:13 +02:00
parent f61c3870dc
commit 01f90daef0
2 changed files with 2 additions and 2 deletions
@@ -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 },
@@ -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 },