From 56aff406faacb56287e9982cf5b3e364e1209671 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 18 Apr 2023 19:07:20 +0000 Subject: [PATCH] [UPD] README.rst --- web_tree_dynamic_colored_field/README.rst | 6 ++++-- .../static/description/index.html | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/web_tree_dynamic_colored_field/README.rst b/web_tree_dynamic_colored_field/README.rst index 484711548..8f507c1fa 100644 --- a/web_tree_dynamic_colored_field/README.rst +++ b/web_tree_dynamic_colored_field/README.rst @@ -39,7 +39,8 @@ Features * Add attribute ``bg_color`` on field's ``options`` to color background of a cell in tree view * Add attribute ``fg_color`` on field's ``options`` to change text color of a cell in tree view -* Add attribute ``color_field`` on the tree element's ``colors`` to use as color +* Add attribute ``color_field`` on the tree element's ``colors`` to use as text color +* Add attribute ``bg_color_field`` on the tree element's ``colors`` to use as background color **Table of contents** @@ -81,9 +82,10 @@ Usage ... - + ... + ... diff --git a/web_tree_dynamic_colored_field/static/description/index.html b/web_tree_dynamic_colored_field/static/description/index.html index 6aae54839..2e7a59e5f 100644 --- a/web_tree_dynamic_colored_field/static/description/index.html +++ b/web_tree_dynamic_colored_field/static/description/index.html @@ -379,7 +379,8 @@ a field’s value as color.

Table of contents

@@ -420,9 +421,10 @@ With this example, column which renders 'name' field will have its text colored
 ...
 <field name="arch" type="xml">
-    <tree string="View name" colors="color_field: my_color" >
+    <tree string="View name" colors="color_field: my_color; bg_color_field: my_background_color" >
         ...
         <field name="my_color" invisible="1"/>
+        <field name="my_background_color" invisible="1"/>
         ...
     </tree>
 </field>