From 97f05fcd9d7956e1cae325203e434bb6f860c22b Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 5 Mar 2013 11:44:11 +0100 Subject: [PATCH] [ADD] kanban view for goals bzr revid: mat@openerp.com-20130305104411-akwb7r6viq4vv7qi --- addons/gamification/__openerp__.py | 1 + addons/gamification/goal_view.xml | 30 ++++++++++++++++++++- addons/gamification/static/src/css/goal.css | 16 +++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 addons/gamification/static/src/css/goal.css diff --git a/addons/gamification/__openerp__.py b/addons/gamification/__openerp__.py index aa205457a4f..cfff5ec0c53 100644 --- a/addons/gamification/__openerp__.py +++ b/addons/gamification/__openerp__.py @@ -33,4 +33,5 @@ ], 'installable': True, 'application': True, + 'css': ['static/src/css/goal.css'], } diff --git a/addons/gamification/goal_view.xml b/addons/gamification/goal_view.xml index e35ad91df64..dccd0f01b21 100644 --- a/addons/gamification/goal_view.xml +++ b/addons/gamification/goal_view.xml @@ -6,7 +6,7 @@ Goals gamification.goal - tree,form,calendar + tree,form,calendar,kanban

Click to create a goal. @@ -125,6 +125,34 @@ + + Goal Kanban View + gamification.goal + + + + + + + + + + +

+
+

+
+ / + ⟨%%⟩ +
+
+
+ + 7 + +
+
+ diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css new file mode 100644 index 00000000000..621a75e514a --- /dev/null +++ b/addons/gamification/static/src/css/goal.css @@ -0,0 +1,16 @@ +.oe_kanban_goal { + width: 200px; + min-height: 160px; +} +.openerp .oe_kanban_view .oe_kanban_color_reached { + background-color: #A1FF81; + color: #0B1907; +} +.openerp .oe_kanban_view .oe_kanban_color_failed { + background-color: #ffc7c7; + color: #7a3737; +} +.oe_kanban_color_inprogress,.oe_kanban_color_inprogress_update,.oe_kanban_color_draft { + background-color: white; + color: black; +} \ No newline at end of file