[FIX] edi qweb template loading
authorAntony Lesuisse <al@openerp.com>
Thu, 22 Dec 2011 14:09:31 +0000 (15:09 +0100)
committerAntony Lesuisse <al@openerp.com>
Thu, 22 Dec 2011 14:09:31 +0000 (15:09 +0100)
bzr revid: al@openerp.com-20111222140931-smsmbpna3g9na1fn

addons/edi/__openerp__.py
addons/edi/static/src/js/edi.js

index 07b189e..ac0ced1 100644 (file)
@@ -50,6 +50,9 @@ technical OpenERP documentation at http://doc.openerp.com
     "css": [
         "static/src/css/edi.css"
     ],
+    'qweb': [
+        "static/src/xml/*.xml",
+    ],
     'installable': True,
     'active': False,
     'certificate': '002046536359186',
index ea7f55f..cef3084 100644 (file)
@@ -1,7 +1,4 @@
 openerp.edi = function(openerp) {
-openerp.web.qweb.add_template("/edi/static/src/xml/edi.xml");
-openerp.web.qweb.add_template("/edi/static/src/xml/edi_account.xml");
-openerp.web.qweb.add_template("/edi/static/src/xml/edi_sale_purchase.xml");
 openerp.edi = {}
 
 openerp.edi.EdiView = openerp.web.Widget.extend({