diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index 5c8614246cb..dd1f595b13d 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -184,11 +184,11 @@
  • Delete
  • @@ -219,13 +219,13 @@ - +

    - +
    diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js index 2a61f89cce4..a688d69de6d 100644 --- a/addons/project/static/src/js/project.js +++ b/addons/project/static/src/js/project.js @@ -26,15 +26,12 @@ openerp.project = function(openerp) { }); }); - _.each($('.oe_project_kanban_vignette'),function(record){ - _.each(record.getElementsByTagName('img'),function(img){ - var domain = [['id','=',img.getAttribute("id")]]; - var dataset = new openerp.web.DataSetSearch(this, 'res.users', self.session.context, domain); - dataset.read_slice([]).then(function(result){ - img.setAttribute("title",result[0].name) - }); + $('.project_avatar').mouseover(function() { + avatar = this + var dataset = new openerp.web.DataSetSearch(this, 'res.users', self.session.context, [['id','=',avatar.getAttribute("id")]]); + dataset.read_slice([]).then(function(result){ + avatar.setAttribute("title",result[0].name) }); - }); } diff --git a/addons/project_issue/__openerp__.py b/addons/project_issue/__openerp__.py index 6ddbfb07ea4..dfb40c82ce1 100644 --- a/addons/project_issue/__openerp__.py +++ b/addons/project_issue/__openerp__.py @@ -64,6 +64,7 @@ and decide on their status as they evolve. 'installable': True, 'auto_install': False, 'application': True, + 'js': ['static/src/js/project_issue.js'], 'certificate' : '001236490750848623845', } 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..0d0b99cb3e8 --- /dev/null +++ b/addons/project_issue/static/src/js/project_issue.js @@ -0,0 +1,9 @@ +openerp.project_issue = function(openerp) { + openerp.web_kanban.ProjectIssueKanban = openerp.web_kanban.KanbanRecord.include({ + bind_events: function() { + self = this; + self._super(); + console.log("ISSUES :: ",self) + } + }); +}