diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-03-21 09:53:21 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | fc08507fdb9d1aab08e60c81a698e203b9b819a2 (patch) | |
| tree | 97e75d5c994d7af6accb7a0b96e73d3fc9bfaae0 /addons/hr_gamification/static/src | |
| parent | 8986428709fd4140b9198777cad3acdd84621f30 (diff) | |
[REF] web,*: convert Kanban widgets to new style
The remaining widgets were KanbanRecord and the two quick create
widgets. Now, all kanban files have been converted and refactored.
Diffstat (limited to 'addons/hr_gamification/static/src')
| -rw-r--r-- | addons/hr_gamification/static/src/js/gamification.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/hr_gamification/static/src/js/gamification.js b/addons/hr_gamification/static/src/js/gamification.js index 84ed1ae4c74..585cbbdf9ee 100644 --- a/addons/hr_gamification/static/src/js/gamification.js +++ b/addons/hr_gamification/static/src/js/gamification.js @@ -4,7 +4,15 @@ odoo.define('hr_gamification.hr_gamification', function(require) { var KanbanRecord = require('web.KanbanRecord'); KanbanRecord.include({ - on_card_clicked: function() { + //-------------------------------------------------------------------------- + // Private + //-------------------------------------------------------------------------- + + /** + * @override + * @private + */ + _openRecord: function () { if (this.modelName === 'gamification.badge.user') { var action = { type: 'ir.actions.act_window', |
