[FIX] web_m2x_options: add fieldColor to ListMany2ManyTagsAvatarField and Many2ManyTagsAvatarField

This commit is contained in:
JordiMForgeFlow
2024-10-14 10:25:41 +02:00
parent 8bdde59276
commit 1f71e529e9
2 changed files with 20 additions and 7 deletions

View File

@@ -10,6 +10,10 @@ import {
KanbanMany2OneAvatarField,
Many2OneAvatarField,
} from "@web/views/fields/many2one_avatar/many2one_avatar_field";
import {
ListMany2ManyTagsAvatarField,
Many2ManyTagsAvatarField,
} from "@web/views/fields/many2many_tags_avatar/many2many_tags_avatar_field";
import {Many2XAutocomplete} from "@web/views/fields/relational_utils";
import {evaluateBooleanExpr} from "@web/core/py_js/py";
@@ -56,6 +60,18 @@ Many2ManyTagsFieldColorEditable.props = {
fieldColorOptions: {type: Object, optional: true},
};
ListMany2ManyTagsAvatarField.props = {
...ListMany2ManyTagsAvatarField.props,
fieldColor: {type: String, optional: true},
fieldColorOptions: {type: Object, optional: true},
};
Many2ManyTagsAvatarField.props = {
...Many2ManyTagsAvatarField.props,
fieldColor: {type: String, optional: true},
fieldColorOptions: {type: Object, optional: true},
};
patch(many2OneField, {
m2o_options_props_create(props, attrs, options) {
const ir_options = session.web_m2x_options;