[FIX] web: fix field selector props validation
Before this commit, it crashes when giving the number 0 or 1 as path to the ModelFieldSelector in debug mode. This commit fixes the ModelFieldSelector's props validation. closes odoo/odoo#138399 X-original-commit: bcba6e6e8041e325963fca21f70d58f715bf1f2f Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com> Signed-off-by: Michaël Mattiello (mcm) <mcm@odoo.com>
This commit is contained in:
@@ -95,7 +95,7 @@ export class ModelFieldSelectorPopover extends Component {
|
||||
filter: { type: Function, optional: true },
|
||||
followRelations: { type: Boolean, optional: true },
|
||||
isDebugMode: { type: Boolean, optional: true },
|
||||
path: String,
|
||||
path: [String, { value: 0 }, { value: 1 }],
|
||||
resModel: String,
|
||||
showSearchInput: { type: Boolean, optional: true },
|
||||
update: Function,
|
||||
|
||||
Reference in New Issue
Block a user