From 4af50da7dc0e75222ae3fd94ef7c2ac58d5a9c00 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Thu, 12 Jul 2012 13:33:26 +0200 Subject: [IMP] refactor the handling of many2many tags in issues and tasks kanban views bzr revid: abo@openerp.com-20120712113326-a0p30oij7g67gmtj --- addons/project_issue/static/src/js/project_issue.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 addons/project_issue/static/src/js/project_issue.js (limited to 'addons/project_issue/static/src') diff --git a/addons/project_issue/static/src/js/project_issue.js b/addons/project_issue/static/src/js/project_issue.js new file mode 100644 index 00000000000..24e5ff7cc49 --- /dev/null +++ b/addons/project_issue/static/src/js/project_issue.js @@ -0,0 +1,13 @@ +openerp.portal_project_issue = function(openerp) { + openerp.web_kanban.KanbanView.include({ + on_groups_started: function() { + var self = this; + self._super.apply(this, arguments); + + if (self.dataset.model === 'project.issue') { + // Load project's categories names from m2m field + self.project_display_categ_names(); + } + } + }); +}; -- cgit v1.2.3