[MIG] web_tree_dynamic_colored_field: Migration to 18.0

pull/2963/head
Khôi (Kiên Kim) 2024-10-09 16:48:18 +07:00
parent 625b940dbe
commit 93d2a299ed
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
"name": "Colorize field in tree views",
"summary": "Allows you to dynamically color fields on tree views",
"category": "Hidden/Dependency",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"depends": ["web"],
"author": "Camptocamp, Therp BV, Odoo Community Association (OCA)",
"license": "AGPL-3",

View File

@ -1,8 +1,8 @@
/** @odoo-module **/
import {patch} from "@web/core/utils/patch";
import {ListRenderer} from "@web/views/list/list_renderer";
import {evaluateBooleanExpr} from "@web/core/py_js/py";
import {patch} from "@web/core/utils/patch";
patch(ListRenderer.prototype, {
/**
@ -30,9 +30,9 @@ patch(ListRenderer.prototype, {
/**
* Return the `color` that has truthfull expresssion
*
* @param column {Object} represents field
* @param record {Record}
* @param color_target {String} 'bg_color' or 'fg_color'
* @param {Object} column represents field
* @param {Record} record
* @param {String} color_target 'bg_color' or 'fg_color'
* @returns {String | undefined} color
*/
getDynamicColor(column, record, color_target) {