summaryrefslogtreecommitdiff
path: root/addons/project_issue/static/src
diff options
context:
space:
mode:
authorAntonin Bourguignon <abo@openerp.com>2012-07-12 13:33:26 +0200
committerAntonin Bourguignon <abo@openerp.com>2012-07-12 13:33:26 +0200
commit4af50da7dc0e75222ae3fd94ef7c2ac58d5a9c00 (patch)
tree50a2e0d44d413d5f4cc2e1dcac4ca5277b344158 /addons/project_issue/static/src
parent7ccb648390b0b7ed5cf0276e0fe6b724acb87dff (diff)
[IMP] refactor the handling of many2many tags in issues and tasks kanban views
bzr revid: abo@openerp.com-20120712113326-a0p30oij7g67gmtj
Diffstat (limited to 'addons/project_issue/static/src')
-rw-r--r--addons/project_issue/static/src/js/project_issue.js13
1 files changed, 13 insertions, 0 deletions
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();
+ }
+ }
+ });
+};