summaryrefslogtreecommitdiff
path: root/addons/web_graph
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2011-11-02 12:11:05 +0100
committerChristophe Simonis <chs@openerp.com>2011-11-02 12:11:05 +0100
commitae0bf044ef1d63bc0bb19eb9dccc0218c63a9c65 (patch)
tree4f42ebb07192d87726b3608eae1d622c10494a06 /addons/web_graph
parent6f91e87f8cf55a4ba79809b697dbdd575f05677a (diff)
[IMP] qweb templates are stored in addon manifest and given by the server
bzr revid: chs@openerp.com-20111102111105-ibyupno1e47sv9ho
Diffstat (limited to 'addons/web_graph')
-rw-r--r--addons/web_graph/__openerp__.py3
-rw-r--r--addons/web_graph/static/src/js/graph.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_graph/__openerp__.py b/addons/web_graph/__openerp__.py
index 68775b7c0e3..d7c37acb180 100644
--- a/addons/web_graph/__openerp__.py
+++ b/addons/web_graph/__openerp__.py
@@ -7,5 +7,8 @@
"static/lib/dhtmlxGraph/codebase/dhtmlxchart_debug.js",
"static/src/js/graph.js"],
"css": ["static/lib/dhtmlxGraph/codebase/dhtmlxchart.css"],
+ 'qweb' : [
+ "static/src/xml/*.xml",
+ ],
"active": True
}
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index bac147b1a91..91aaf8bdb9c 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -13,7 +13,6 @@ var COLOR_PALETTE = [
'#cc0000', '#d400a8'];
var QWeb = openerp.web.qweb;
-QWeb.add_template('/web_graph/static/src/xml/web_graph.xml');
openerp.web.views.add('graph', 'openerp.web_graph.GraphView');
openerp.web_graph.GraphView = openerp.web.View.extend({