[ADD] add basic structure of web_process module.
bzr revid: ysa@tinyerp.com-20110913085434-z2a2615i2jpwdhmy
This commit is contained in:
parent
a6b981eca5
commit
e21d4b3e42
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name" : "Process",
|
||||
"version" : "2.0",
|
||||
"depends" : ["web"],
|
||||
"js": [
|
||||
"static/src/js/process.js"
|
||||
],
|
||||
"css": [
|
||||
],
|
||||
'active': True
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 379 B |
|
@ -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:
|
|
@ -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>
|
Loading…
Reference in New Issue