From cf70d8590bb79b46a6239f1dfcf1414c336af3a6 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 8 Nov 2016 16:01:42 +0100 Subject: [PATCH] [ADD] demo view --- web_tree_dynamic_colored_field/__openerp__.py | 3 +++ .../demo/res_users.xml | 22 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 web_tree_dynamic_colored_field/demo/res_users.xml diff --git a/web_tree_dynamic_colored_field/__openerp__.py b/web_tree_dynamic_colored_field/__openerp__.py index 78dd78e0..f9e326e0 100644 --- a/web_tree_dynamic_colored_field/__openerp__.py +++ b/web_tree_dynamic_colored_field/__openerp__.py @@ -10,6 +10,9 @@ 'author': "Camptocamp,Therp BV,Odoo Community Association (OCA)", 'license': 'AGPL-3', 'website': 'https://github.com/OCA/web', + 'demo': [ + "demo/res_users.xml", + ], 'data': [ 'views/web_tree_dynamic_colored_field.xml', ], diff --git a/web_tree_dynamic_colored_field/demo/res_users.xml b/web_tree_dynamic_colored_field/demo/res_users.xml new file mode 100644 index 00000000..8bcf9141 --- /dev/null +++ b/web_tree_dynamic_colored_field/demo/res_users.xml @@ -0,0 +1,22 @@ + + + + + res.users + + + + lang + + + red: login_date == False + white: login_date == False + + + red: login == 'admin' + white: login == 'admin' + + + + +