diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2012-11-13 14:03:29 +0100 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2012-11-13 14:03:29 +0100 |
| commit | 32c47a40249f2bae79fa37fc36c30b833dde836f (patch) | |
| tree | 0278997291be44db705eb2ef48a36eae56ce027b /addons/process/static/src | |
| parent | 54c0c6e9ca85cb3375e259395847199fc58a1895 (diff) | |
| parent | 209ad67cf4df990592e1a751253a5ba7a8d87a7e (diff) | |
[MERGE]merge with latest trunk
bzr revid: csn@openerp.com-20121113130329-a3h2mpopgp14r219
Diffstat (limited to 'addons/process/static/src')
| -rw-r--r-- | addons/process/static/src/css/process.css | 2 | ||||
| -rw-r--r-- | addons/process/static/src/js/process.js | 13 | ||||
| -rw-r--r-- | addons/process/static/src/xml/process.xml | 4 |
3 files changed, 12 insertions, 7 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 c214dbb0fdf..73ca4396ce6 100644 --- a/addons/process/static/src/js/process.js +++ b/addons/process/static/src/js/process.js @@ -20,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; @@ -30,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) { @@ -176,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}) @@ -216,12 +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]).then(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 - }).then(function(result) { + }).done(function(result) { action_manager.replace(self.$el); action_manager.do_action(result.result); }) 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> |
