diff --git a/addons/gamification/goal_base_data.xml b/addons/gamification/goal_base_data.xml index 76408c92e85..a4790a1c692 100644 --- a/addons/gamification/goal_base_data.xml +++ b/addons/gamification/goal_base_data.xml @@ -27,7 +27,7 @@ Set your Company Data - Specify at least a website + Write some information about your company (specify at least a name) count checkbox @@ -69,7 +69,7 @@ - # Mail Group Following + Mail Group Following Follow mail groups to receive news python self.number_following(cr, uid, 'mail.group') @@ -79,7 +79,7 @@ - Set up your Profile + Manage your Personal Profile once progressbar never @@ -89,7 +89,7 @@ - Configure OpenERP + Manage your Company Profile once progressbar never diff --git a/addons/gamification/plan.py b/addons/gamification/plan.py index c2547f4c79b..01471fe7238 100644 --- a/addons/gamification/plan.py +++ b/addons/gamification/plan.py @@ -201,7 +201,7 @@ class gamification_goal_plan(osv.Model): 'reward_failure': False, } - _sort = 'end_date start_date name' + _sort = 'end_date, start_date, name' def write(self, cr, uid, ids, vals, context=None): """Overwrite the write method to add the user of groups""" diff --git a/addons/gamification/static/src/css/gamification.css b/addons/gamification/static/src/css/gamification.css index 62b7e2c8091..6a8869dd466 100644 --- a/addons/gamification/static/src/css/gamification.css +++ b/addons/gamification/static/src/css/gamification.css @@ -1,7 +1,7 @@ /* Kanban views */ .openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal { - width: 230px; - min-height: 200px; + width: 230px; + min-height: 200px; } .openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge { width: 250px; @@ -59,30 +59,42 @@ margin-left: -6px; } -/* Mail Sidebar */ + +/* + ============ + Mail Sidebar + ============ +*/ .openerp .oe_mail_wall .oe_mail_wall_aside { margin-top: 15px; position: relative; display: inline-block; vertical-align: top; width: 280px; - /*background: #EDEDF6;*/ background-color: #f8f8f8; - border: solid 1px rgba(0,0,0,0.03); + background-color: #EDEDF6; + /*border: solid 1px rgba(0,0,0,0.03);*/ border-radius: 2px; } + .openerp .oe_mail_wall_aside > div { - padding: 5px 5px 0 15px; + border-bottom: solid 3px white; + border-radius: 2px; +} +.openerp .oe_mail_wall_aside .oe_goal { + border-bottom: solid 3px white; } .openerp .oe_mail_wall_aside h3 { font-size: 1.3em; - margin-left: -7px; - font-variant: small-caps; - text-transform: capitalize; + /*font-variant: small-caps; + text-transform: capitalize;*/ line-height: 1em; } .openerp .oe_mail_wall_aside .oe_goal { - width: 100%; + padding: 5px 5px 0 15px; +} +.openerp .oe_mail_wall_aside .oe_goal h4 { + font-size: 110%; } /*.openerp .oe_mail_wall_aside .oe_goal a { color: #4c4c4c;; @@ -91,23 +103,34 @@ list-style-type: none; padding-left: 0; margin-top: 5px; - margin-bottom: 15px; + margin-bottom: 10px; } .openerp .oe_mail_wall_aside table.oe_goals_list { width: 95%; /*border: 1px dotted rgb(221, 221, 221); border-color: rgba(133, 133, 133, 0.3);*/ - border: solid 1px rgba(0,0,0,0.05); + /*border: solid 1px rgba(0,0,0,0.05);*/ +} +.openerp .oe_mail_wall_aside .oe_goals_list > li { + padding-bottom: 8px; + vertical-align: middle; +} +.openerp .oe_mail_wall_aside .oe_goals_list > li.oe_no_progress { + padding-bottom: 2px; } .openerp .oe_mail_wall_aside .oe_goals_list > li::before { content: "\0BB \020"; + font-size: 175%; } .openerp .oe_mail_wall_aside .oe_goals_list > li.oe_goal_reached::before { color: rgb(27, 70, 7); content: "✓"; - /*font-size: 65%;*/ /* reduce font to have the same size as "\0BB \020" */ margin-right: -4px; } +.openerp .oe_mail_wall_aside .oe_goals_list li .oe_goal_current { + font-size: 150%; + font-weight: bold; +} .openerp .oe_mail_wall_aside .oe_gamification_goal .oe_goal_reached .oe_goal_inner_box { text-decoration: line-through; } @@ -116,10 +139,9 @@ display: inline-block; position: relative; height: 100%; - width: 90%; + width: 80%; z-index: 0; - vertical-align: top; - padding-bottom: 5px; + vertical-align: middle; } .openerp .oe_mail_wall .oe_mail_wall_aside table .oe_goal_outer_box { width: 100%; @@ -129,9 +151,10 @@ border-color: rgba(133, 133, 133, 0.3); }*/ .openerp .oe_mail_wall .oe_mail_wall_aside .oe_goal_progress_background { - background-color: rgb(231, 190, 190); + /*background-color: rgb(231, 190, 190);*/ + background-color: white; position: absolute; - height: 4px; + height: 3px; width: 100%; z-index: -2; top: 0; left: 0; @@ -139,8 +162,8 @@ .openerp .oe_mail_wall .oe_mail_wall_aside .oe_goal_progress { /*background: rgb(183, 231, 179);*/ /*background: rgba(183, 231, 179, 0.5);*/ - /*background-color: #7c7bad;*/ background-color: rgb(88, 155, 91); + background-color: #7c7bad; position: absolute; height: 3px; width: 0; @@ -150,9 +173,12 @@ .openerp .oe_mail_wall_aside .oe_goals_list .oe_goal_inner_box { display: inline-block; height: 100%; - padding-top: 3px; + margin-top: 6px; line-height: 1em; } +.openerp .oe_mail_wall_aside .oe_goals_list .oe_goal_inner_box.oe_no_progress { + margin-top: 0; +} .openerp .oe_mail_wall_aside .oe_goals_list .oe_goal_inner_box strong { padding-left: 5px; } @@ -184,7 +210,7 @@ height: 24px; } .openerp .oe_mail_wall_aside table.oe_goals_list .col0 { - font-size: 160%; + font-size: 200%; font-weight: bold; } .openerp .oe_mail_wall_aside table.oe_goals_list .col1 { diff --git a/addons/gamification/static/src/xml/gamification.xml b/addons/gamification/static/src/xml/gamification.xml index 1f9649a9198..27a4a46108d 100644 --- a/addons/gamification/static/src/xml/gamification.xml +++ b/addons/gamification/static/src/xml/gamification.xml @@ -11,65 +11,53 @@ -
    -
  • +
  • +
    -
    +
    - + - - - & - - / - + (target: - - (less than - - - ) - + (target less than: + + )
+ @@ -88,7 +76,14 @@

- + + + + + + + +
@@ -101,12 +96,14 @@ -

Suggestions

-
    -
  • - -
  • -
+
+

Suggestions

+
    +
  • + +
  • +
+
diff --git a/addons/gamification_sale_crm/sale_crm_goals.xml b/addons/gamification_sale_crm/sale_crm_goals.xml index 2afedbad2a8..c5f85ef3273 100644 --- a/addons/gamification_sale_crm/sale_crm_goals.xml +++ b/addons/gamification_sale_crm/sale_crm_goals.xml @@ -15,7 +15,7 @@ - # New Leads + New Leads Based on the creation date count leads @@ -50,7 +50,7 @@ - # Logged Calls + Logged Calls Log a certain number of calls to reach this goal count calls @@ -60,7 +60,7 @@ - # New Opportunities + New Opportunities Based on the opening date count opportunities @@ -70,7 +70,7 @@ - # New Sales Orders + New Sales Orders Based on the creation date count orders @@ -80,7 +80,7 @@ - # Paid Sales Orders + Paid Sales Orders Based on the invoice date count orders @@ -101,7 +101,7 @@ - # Customer Refunds + Customer Refunds Refund the least customers (lower than) count lower
- - - - - - + + & -
- (Goal: max + Target: - (Goal: min + Target (less than): )