summaryrefslogtreecommitdiff
path: root/addons/process/static/src
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2012-11-14 15:17:51 +0100
committerFrédéric van der Essen <fva@openerp.com>2012-11-14 15:17:51 +0100
commit25fb4bcbcaf4cb5804b7fd06761c3e0cf1f93ae6 (patch)
tree1c2c40a5b016c8886d76ed0b79903ad83e756abc /addons/process/static/src
parent8262b4fe9591f8c6d95fdbee1e11445370fbcd08 (diff)
parentfdf9f920f009a0d4a29c16b9755e9900b0eb705d (diff)
[MERGE] from trunk
bzr revid: fva@openerp.com-20121114141751-8l6meschr2ay4o6c
Diffstat (limited to 'addons/process/static/src')
-rw-r--r--addons/process/static/src/css/process.css2
-rw-r--r--addons/process/static/src/js/process.js19
-rw-r--r--addons/process/static/src/xml/process.xml4
3 files changed, 13 insertions, 12 deletions
diff --git a/addons/process/static/src/css/process.css b/addons/process/static/src/css/process.css
index 7442db9bc4a..5f438622653 100644
--- a/addons/process/static/src/css/process.css
+++ b/addons/process/static/src/css/process.css
@@ -44,7 +44,7 @@ a.cta-a strong {
background-color:#FFF;
}
.process_canvas svg{
- height:500px;!important;
+ height:500px;
padding:15px;
}
.oe_process {
diff --git a/addons/process/static/src/js/process.js b/addons/process/static/src/js/process.js
index 57c6f196012..73ca4396ce6 100644
--- a/addons/process/static/src/js/process.js
+++ b/addons/process/static/src/js/process.js
@@ -6,7 +6,6 @@ instance.web.ViewManager.include({
var self = this;
var _super = this._super();
this.process_help = this.action ? this.action.help : '';
- self.process_help = $(this.process_help).text();
if(this.action) {
this.process_model = this.action.res_model;
} else {
@@ -21,7 +20,7 @@ instance.web.ViewManager.include({
if(this.active_view == 'form') {
this.record_id = this.views[this.active_view].controller.datarecord.id;
}
- this.process_get_object().pipe(function(process) {
+ this.process_get_object().then(function(process) {
if(process && process.length) {
if(process.length > 1) {
self.process_selection = process;
@@ -31,7 +30,7 @@ instance.web.ViewManager.include({
}
}
return $.Deferred().resolve();
- }).pipe(function() {
+ }).then(function() {
var def = $.Deferred();
if(self.process_id) {
$.when(self.process_graph_get()).done(function(res) {
@@ -177,6 +176,11 @@ 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"});
+ 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 || "http://doc.openerp.com/v6.1/index.php?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})
@@ -217,13 +221,12 @@ instance.web.ViewManager.include({
var dataset = new instance.web.DataSet(this, 'ir.values', this.session.user_context);
var action_manager = new instance.web.ActionManager(self);
dataset.call('get',
- ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context],
- function(res) {
+ ['action', 'tree_but_open',[['ir.ui.menu', id]], dataset.context]).done(function(res) {
var action = res[0][res[0].length - 1];
self.rpc("/web/action/load", {
action_id: action.id,
context: dataset.context
- }, function(result) {
+ }).done(function(result) {
action_manager.replace(self.$el);
action_manager.do_action(result.result);
})
@@ -240,9 +243,7 @@ instance.web.ViewManager.include({
title: _t('Process')
});
var form_controller = pop.view_form;
- pop.on_write_completed.add_last(function() {
- self.initialize_process_view();
- });
+ pop.on('write_completed', self, self.initialize_process_view);
}
});
};
diff --git a/addons/process/static/src/xml/process.xml b/addons/process/static/src/xml/process.xml
index b1a39aa6ce8..d6229b686f3 100644
--- a/addons/process/static/src/xml/process.xml
+++ b/addons/process/static/src/xml/process.xml
@@ -16,7 +16,7 @@
<div class="oe_view_manager_header" style="padding: 8px;">
<div class="oe_header_row">
<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>
</div>
</div>
@@ -25,7 +25,7 @@
</tr>
<tr>
<td style="padding-left:10px;">
- <p><t t-esc="process_help"/></p>
+ <p><t t-raw="process_help"/></p>
</td>
</tr>
<tr>