diff options
| author | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-09-13 14:24:34 +0530 |
|---|---|---|
| committer | Yogesh (OpenERP) <ysa@tinyerp.com> | 2011-09-13 14:24:34 +0530 |
| commit | e21d4b3e42cb66abf93595e406909d3f9fb6bdee (patch) | |
| tree | 524d82765ba7c7d3b3852a07dc7dfb29dbf05751 /addons/web_process/static/src | |
| parent | a6b981eca52e04678b74acedeba21c2f4c2c5155 (diff) | |
[ADD] add basic structure of web_process module.
bzr revid: ysa@tinyerp.com-20110913085434-z2a2615i2jpwdhmy
Diffstat (limited to 'addons/web_process/static/src')
| -rw-r--r-- | addons/web_process/static/src/img/iconset-a-help.gif | bin | 0 -> 379 bytes | |||
| -rw-r--r-- | addons/web_process/static/src/js/process.js | 22 | ||||
| -rw-r--r-- | addons/web_process/static/src/xml/web_process.xml | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/addons/web_process/static/src/img/iconset-a-help.gif b/addons/web_process/static/src/img/iconset-a-help.gif Binary files differnew file mode 100644 index 00000000000..5400acec57b --- /dev/null +++ b/addons/web_process/static/src/img/iconset-a-help.gif diff --git a/addons/web_process/static/src/js/process.js b/addons/web_process/static/src/js/process.js new file mode 100644 index 00000000000..f872fc05a61 --- /dev/null +++ b/addons/web_process/static/src/js/process.js @@ -0,0 +1,22 @@ + +openerp.web_process = function (openerp) { +var QWeb = openerp.web.qweb; +QWeb.add_template('/web_process/static/src/xml/web_process.xml'); +openerp.web.SearchView = openerp.web.SearchView.extend({ + init: function(parent, element_id, dataset, view_id, defaults) { + this._super(parent, element_id, dataset, view_id, defaults); + }, + on_loaded: function(data) { + var self = this; + this._super(data); + this.$element.find("#ProcessView").click(function() { + self.on_click(); + }); + }, + on_click: function() { + this.widget_parent.$element.replaceWith(QWeb.render("ProcessView")); + }, +}); +}; + +// vim:et fdc=0 fdl=0 foldnestmax=3 fdm=syntax: diff --git a/addons/web_process/static/src/xml/web_process.xml b/addons/web_process/static/src/xml/web_process.xml new file mode 100644 index 00000000000..76a281b911b --- /dev/null +++ b/addons/web_process/static/src/xml/web_process.xml @@ -0,0 +1,11 @@ +<template> +<t t-extend="SearchView"> + <t t-jquery="h2" t-operation="append"> + <img id="ProcessView" src="/web_process/static/src/img/iconset-a-help.gif"/> + </t> +</t> + +<t t-name="ProcessView"> + <p> Process View </p> +</t> +</template> |
