diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-06-12 13:45:31 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-06-15 16:30:36 +0200 |
| commit | 461e3d6784962f666b32ab3f1d71ff6eec530d54 (patch) | |
| tree | 003e212ddcc7ca164c3927ebc57f1269595aaaa8 /addons/hr_gamification/static/src | |
| parent | d6506b22e49a7dc97c8fae7650071dec7f559477 (diff) | |
[FIX] various: update some js modules to new kanban
The kanban view has been split in various files, and js modules
using them need to correctly import the classes.
Diffstat (limited to 'addons/hr_gamification/static/src')
| -rw-r--r-- | addons/hr_gamification/static/src/js/gamification.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/hr_gamification/static/src/js/gamification.js b/addons/hr_gamification/static/src/js/gamification.js index 765acb257e4..a7a0201900a 100644 --- a/addons/hr_gamification/static/src/js/gamification.js +++ b/addons/hr_gamification/static/src/js/gamification.js @@ -1,11 +1,11 @@ odoo.define('hr_gamification.hr_gamification', function(require) { "use strict"; -var common = require('web_kanban.common'); +var KanbanRecord = require('web_kanban.Record'); -common.KanbanRecord.include({ +KanbanRecord.include({ on_card_clicked: function() { - if (this.view.dataset.model === 'gamification.badge.user') { + if (this.model === 'gamification.badge.user') { var action = { type: 'ir.actions.act_window', res_model: 'gamification.badge', |
