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/project/static/src/js/project.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/project/static/src/js/project.js') diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js index 20927cebc2c..515918df0b0 100644 --- a/addons/project/static/src/js/project.js +++ b/addons/project/static/src/js/project.js @@ -1,14 +1,14 @@ odoo.define('project.update_kanban', function (require) { -var kanban_common = require('web_kanban.common'); +var KanbanRecord = require('web_kanban.Record'); var KanbanView = require('web_kanban.KanbanView'); var data = require('web.data'); var session = require('web.session'); -kanban_common.KanbanRecord.include({ +KanbanRecord.include({ on_card_clicked: function() { - if (this.view.dataset.model === 'project.project') { + if (this.model === 'project.project') { this.$('.o_project_kanban_boxes a').first().click(); } else { this._super.apply(this, arguments); -- cgit v1.2.3