[FIX]Link to doc dessappear on process view
lp bug: https://launchpad.net/bugs/1062904 fixed bzr revid: vja@tinyerp.com-20121015100944-w8wo8wti6our5wye
This commit is contained in:
parent
a21cc373bf
commit
df6a4055d3
|
@ -176,6 +176,12 @@ instance.web.ViewManager.include({
|
|||
var notes = new_notes.substring(0,60) +'..';
|
||||
}
|
||||
r.text(nodes.x+60, nodes.y+30, (notes || new_notes)).attr({"title":nodes.notes,"cursor": "default"});
|
||||
var DOC_URL = "http://doc.openerp.com/v6.1/index.php";
|
||||
r['image']('/web/static/src/img/icons/gtk-info.png', nodes.x, nodes.y+75, 16, 16)
|
||||
.attr({"cursor": "pointer", "title": "Help"})
|
||||
.click(function() {
|
||||
window.open(nodes.url || DOC_URL + "?model=" + nodes.model);
|
||||
});
|
||||
if(nodes.menu) {
|
||||
r['image']('/web/static/src/img/icons/gtk-jump-to.png', nodes.x+100, nodes.y+75, 16, 16)
|
||||
.attr({"cursor": "pointer", "title": nodes.menu.name})
|
||||
|
|
Loading…
Reference in New Issue