diff options
| author | Martin Trigaux <mat@openerp.com> | 2013-04-03 17:10:56 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2013-04-03 17:10:56 +0200 |
| commit | 46110fbf2995f3a8104f3f08007db4cf43000a85 (patch) | |
| tree | 7ef224499a8f332014eb4a40b3bc1ca5adc6a2d4 /addons/hr/static/src | |
| parent | 788501fd7804a45319d7776a381d2e6f42215df7 (diff) | |
[ADD] option to globally stop showing group suggestions
bzr revid: mat@openerp.com-20130403151056-4vjno2k9n77drm6y
Diffstat (limited to 'addons/hr/static/src')
| -rw-r--r-- | addons/hr/static/src/js/suggestions.js | 2 | ||||
| -rw-r--r-- | addons/hr/static/src/xml/suggestions.xml | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/addons/hr/static/src/js/suggestions.js b/addons/hr/static/src/js/suggestions.js index 5438faad768..fe8dc83a37a 100644 --- a/addons/hr/static/src/js/suggestions.js +++ b/addons/hr/static/src/js/suggestions.js @@ -37,8 +37,6 @@ openerp.hr = function(session) { self.$el.find('.oe_suggestions_employees').html( QWeb.render("hr.suggestions.employee", {'widget': self}) ); if (self.suggestions.length === 0) { self.$(".oe_sidebar_employee").hide(); - } else { - // self.renderFollowButtons(); } }); }, diff --git a/addons/hr/static/src/xml/suggestions.xml b/addons/hr/static/src/xml/suggestions.xml index c91724ef3d8..a4c949ae7ad 100644 --- a/addons/hr/static/src/xml/suggestions.xml +++ b/addons/hr/static/src/xml/suggestions.xml @@ -8,8 +8,13 @@ </t> <!-- Suggested employees --> - <div t-name="hr.suggestions.employee" class="oe_sidebar_employee"> - <p class="oe_suggestion_display">Suggested Employees</p> + <div t-name="hr.suggestions.employee" class="oe_sidebar_suggestion oe_sidebar_employee"> + <p class="oe_suggestion_display"> + Suggested Employees + <a class="oe_remove_suggestion oe_remove_suggestion_employees" rol="button"> + <span class="oe_kanban_action oe_kanban_action_a">X</span> + </a> + </p> <div class="oe_suggest_employees"> <t t-foreach="widget.suggestions" t-as="result"> <div class="oe_suggested_item"> |
