diff --git a/web_m2x_options/static/src/components/form.esm.js b/web_m2x_options/static/src/components/form.esm.js index 5b49eff751c..35c4b5eff8b 100644 --- a/web_m2x_options/static/src/components/form.esm.js +++ b/web_m2x_options/static/src/components/form.esm.js @@ -1,4 +1,5 @@ /** @odoo-module **/ +import { registry } from "@web/core/registry"; import { Many2ManyTagsField, Many2ManyTagsFieldColorEditable, @@ -378,3 +379,18 @@ patch(FormController.prototype, { } }, }); + +// O.W.L. v18+: schema is validated in dev mode on adding to registry +patch(registry.category("fields").validationSchema, { + m2oOptionsPropsCreate: { type: Function, optional: true }, + m2oOptionsPropsCreateEdit: { type: Function, optional: true }, + m2oOptionsPropsLimit: { type: Function, optional: true }, + m2oOptionsPropsSearchMore: { type: Function, optional: true }, + m2oOptionsPropsOpen: { type: Function, optional: true }, + m2oOptionsProps: { type: Function, optional: true }, + m2mOptionsPropsCreate: { type: Function, optional: true }, + m2mOptionsPropsCreateEdit: { type: Function, optional: true }, + m2mOptionsPropsLimit: { type: Function, optional: true }, + m2mOptionsPropsSearchMore: { type: Function, optional: true }, + m2mOptionsProps: { type: Function, optional: true }, +});