diff --git a/addons/edi/__openerp__.py b/addons/edi/__openerp__.py
index 60084c4c484..effeea60585 100644
--- a/addons/edi/__openerp__.py
+++ b/addons/edi/__openerp__.py
@@ -50,6 +50,9 @@ technical OpenERP documentation at http://doc.openerp.com
'static/src/js/edi_invoice.js',
'static/src/js/edi_sale_purchase_order.js',
],
+ "css": [
+ "static/src/css/edi.css"
+ ],
'installable': True,
'active': False,
'certificate': '002046536359186',
diff --git a/addons/edi/controllers/edi_view.py b/addons/edi/controllers/edi_view.py
index 324bebed36a..b851053f676 100644
--- a/addons/edi/controllers/edi_view.py
+++ b/addons/edi/controllers/edi_view.py
@@ -23,7 +23,7 @@ edi_view_template = textwrap.dedent("""
}
}
var edi_engine = new c.web.EdiView("oe");
- edi_engine.view_edi('%(token)s', '%(db)s');
+ edi_engine.view_edi('%(token)s', '%(db)s');
});
@@ -33,8 +33,8 @@ edi_view_template = textwrap.dedent("""
""")
def edi_addons():
- #FIXME: hardcoded to be able to test
- return 'web,edi,sale,purchase'
+ #FIXME: hardcoded to be able to test
+ return 'web,edi'
_addons = ['web', 'edi', 'sale', 'purchase']
for addon in openerpweb.addons_module:
@@ -47,7 +47,7 @@ def edi_addons():
return _addons
class EDIView(web.WebClient):
- # http://path.to.web.client:8080/web/view_edi?db=XXX&token=XXXXXXXXXXX
+ # http://path.to.web.client:8080/web/view_edi?db=XXX&token=XXXXXXXXXXX
_cp_path = "/web/view_edi"
@openerpweb.httprequest
@@ -63,7 +63,7 @@ class EDIView(web.WebClient):
content,timestamp = web.concat_files(req.config.addons_path[0], files)
# TODO request set the Date of last modif and Etag
return req.make_response(content, [('Content-Type', 'application/javascript')])
-
+
@openerpweb.httprequest
def index(self, req, token, db):
# script tags
@@ -80,7 +80,7 @@ class EDIView(web.WebClient):
css = "\n ".join([''%i for i in csslist])
js_files = [str(js_file.split('/')[-1].split('.')[0]) for js_file in self.manifest_glob(req, addons, 'js')]
-
+
r = edi_view_template % {
'javascript': js,
'css': css,
@@ -89,6 +89,6 @@ class EDIView(web.WebClient):
'edi_js': js_files
}
return r
-
+
diff --git a/addons/edi/static/src/xml/edi.xml b/addons/edi/static/src/xml/edi.xml
index 9da758f6900..d04502c52f4 100644
--- a/addons/edi/static/src/xml/edi.xml
+++ b/addons/edi/static/src/xml/edi.xml
@@ -1,62 +1,57 @@
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
@@ -66,33 +61,35 @@
-
-
-
- Push this document into your enterprise management system
-
-
-
-
-
-
-
-
-
- Import it into exising OpenERP Server OpenERP Server Address: http://
- Please create OpenERP Server for me and import it into my server.
-
- Compnay: .my.openerp.com
- Password:
- Email:
- Import into another application
-
-
-
-
-
-
-
+
+ Push this document into your enterprise management system
+