From 2e530f6b3ed9892340212cb7cb5b4d7bbbcc0a2a Mon Sep 17 00:00:00 2001 From: Elhamdaoui Abdelmajid Date: Thu, 21 Nov 2024 02:41:56 +0100 Subject: [PATCH] [FIX] add many2ManyTagsAvatarUserField and kanbanMany2ManyTagsAvatarUserField Add color options to this widget [FIX]: added the many2ManyTagsAvatarUserField and kanbanMany2ManyTagsAvatarUserField Components from the 'mail' module. This resolves the error occurring after installing the project module: 'OwlError: Invalid props for component 'KanbanMany2ManyTagsAvatarUserField': unknown key 'fieldColor' and unknown key 'fieldColorOptions'. --- web_m2x_options/static/src/components/form.esm.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/web_m2x_options/static/src/components/form.esm.js b/web_m2x_options/static/src/components/form.esm.js index 380349e35b53..4c574f62eba9 100644 --- a/web_m2x_options/static/src/components/form.esm.js +++ b/web_m2x_options/static/src/components/form.esm.js @@ -14,6 +14,10 @@ import { KanbanMany2ManyTagsAvatarField, Many2ManyTagsAvatarField, } from "@web/views/fields/many2many_tags_avatar/many2many_tags_avatar_field"; +import { + many2ManyTagsAvatarUserField, + kanbanMany2ManyTagsAvatarUserField, +} from "@mail/views/web/fields/many2many_avatar_user_field/many2many_avatar_user_field"; import {Many2XAutocomplete} from "@web/views/fields/relational_utils"; import {evaluateBooleanExpr} from "@web/core/py_js/py"; @@ -69,6 +73,16 @@ KanbanMany2ManyTagsAvatarField.props = { ...fieldColorProps, }; +many2ManyTagsAvatarUserField.props = { + ...many2ManyTagsAvatarUserField.props, + ...fieldColorProps, +}; + +kanbanMany2ManyTagsAvatarUserField.props = { + ...kanbanMany2ManyTagsAvatarUserField.props, + ...fieldColorProps, +}; + patch(many2OneField, { m2o_options_props_create(props, attrs, options) { const ir_options = session.web_m2x_options;