mirror of https://github.com/OCA/web.git
[MIG] web_tree_dynamic_colored_field: Migration to 18.0
parent
625b940dbe
commit
93d2a299ed
|
@ -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",
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue