From 461e3d6784962f666b32ab3f1d71ff6eec530d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 12 Jun 2015 13:45:31 +0200 Subject: [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. --- addons/hr_gamification/static/src/js/gamification.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/hr_gamification/static/src/js/gamification.js') 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', -- cgit v1.2.3