[FIX] process model link to doc.openerp.com
bzr revid: al@openerp.com-20121023010303-u0opl3aluqtogqeb
This commit is contained in:
parent
9f8efd3adc
commit
40c3a1d748
|
@ -176,11 +176,10 @@ instance.web.ViewManager.include({
|
||||||
var notes = new_notes.substring(0,60) +'..';
|
var notes = new_notes.substring(0,60) +'..';
|
||||||
}
|
}
|
||||||
r.text(nodes.x+60, nodes.y+30, (notes || new_notes)).attr({"title":nodes.notes,"cursor": "default"});
|
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)
|
r['image']('/web/static/src/img/icons/gtk-info.png', nodes.x, nodes.y+75, 16, 16)
|
||||||
.attr({"cursor": "pointer", "title": "Help"})
|
.attr({"cursor": "pointer", "title": "Help"})
|
||||||
.click(function() {
|
.click(function() {
|
||||||
window.open(nodes.url || DOC_URL + "?model=" + nodes.model);
|
window.open(nodes.url || "http://doc.openerp.com/v6.1/index.php?model=" + nodes.model);
|
||||||
});
|
});
|
||||||
if(nodes.menu) {
|
if(nodes.menu) {
|
||||||
r['image']('/web/static/src/img/icons/gtk-jump-to.png', nodes.x+100, nodes.y+75, 16, 16)
|
r['image']('/web/static/src/img/icons/gtk-jump-to.png', nodes.x+100, nodes.y+75, 16, 16)
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="oe_view_manager_header" style="padding: 8px;">
|
<div class="oe_view_manager_header" style="padding: 8px;">
|
||||||
<div class="oe_header_row">
|
<div class="oe_header_row">
|
||||||
<h2 class="oe_view_title">
|
<h2 class="oe_view_title">
|
||||||
<span class="oe_view_title_text oe_breadcrumb_title"><t t-esc="action.name"/> (<t t-esc="action.res_model"/>)</span>
|
<span class="oe_view_title_text oe_breadcrumb_title"><t t-esc="action.name"/> (<a t-attf-href="http://doc.openerp.com/v6.1/index.php?model=#{action.res_model}"><t t-esc="action.res_model"/></a>)</span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left:10px;">
|
<td style="padding-left:10px;">
|
||||||
<p><t t-esc="process_help"/></p>
|
<p><t t-raw="process_help"/></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue