From 93d2a299edc529d949d043536284ea5eb89dfed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=C3=B4i=20=28Ki=C3=AAn=20Kim=29?= Date: Wed, 9 Oct 2024 16:48:18 +0700 Subject: [PATCH] [MIG] web_tree_dynamic_colored_field: Migration to 18.0 --- web_tree_dynamic_colored_field/__manifest__.py | 2 +- .../static/src/js/list_renderer.esm.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web_tree_dynamic_colored_field/__manifest__.py b/web_tree_dynamic_colored_field/__manifest__.py index b1e99b51a..7ba8e19c1 100644 --- a/web_tree_dynamic_colored_field/__manifest__.py +++ b/web_tree_dynamic_colored_field/__manifest__.py @@ -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", diff --git a/web_tree_dynamic_colored_field/static/src/js/list_renderer.esm.js b/web_tree_dynamic_colored_field/static/src/js/list_renderer.esm.js index 866195516..545472502 100644 --- a/web_tree_dynamic_colored_field/static/src/js/list_renderer.esm.js +++ b/web_tree_dynamic_colored_field/static/src/js/list_renderer.esm.js @@ -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) {