3
0
Fork 0

[FIX] web_m2x_options: add fieldColor to KanbanMany2ManyTagsAvatarField

17.0
JordiMForgeFlow 2024-10-15 11:39:21 +02:00
parent ede5920018
commit 02175423e5
1 changed files with 10 additions and 1 deletions

View File

@ -10,7 +10,10 @@ import {
KanbanMany2OneAvatarField,
Many2OneAvatarField,
} from "@web/views/fields/many2one_avatar/many2one_avatar_field";
import {Many2ManyTagsAvatarField} from "@web/views/fields/many2many_tags_avatar/many2many_tags_avatar_field";
import {
KanbanMany2ManyTagsAvatarField,
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";
@ -63,6 +66,12 @@ Many2ManyTagsAvatarField.props = {
fieldColorOptions: {type: Object, optional: true},
};
KanbanMany2ManyTagsAvatarField.props = {
...KanbanMany2ManyTagsAvatarField.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;