diff --git a/profiler/__openerp__.py b/profiler/__openerp__.py index 256705f47..8bd4bde34 100644 --- a/profiler/__openerp__.py +++ b/profiler/__openerp__.py @@ -22,7 +22,7 @@ #============================================================================== { 'name': 'profiler', - 'version': '0.1', + 'version': '8.0.0.1', 'category': 'devtools', 'description': """ cprofile integration for Odoo/OpenERP. Check the Profiler menu in admin menu @@ -32,16 +32,11 @@ 'depends': ['base', 'web'], 'data': [ 'security/group.xml', - ], - 'js': [ - 'static/src/js/player.js', + 'views/profiler.xml' ], 'qweb': [ 'static/src/xml/player.xml', ], - 'css': [ - 'static/src/css/player.css', - ], 'installable': True, 'application': False, 'auto_install': False, diff --git a/profiler/controllers.py b/profiler/controllers.py index 89568e6e6..009e7d59e 100644 --- a/profiler/controllers.py +++ b/profiler/controllers.py @@ -56,9 +56,10 @@ class ProfilerController(openerpweb.Controller): return request.make_response( stream, headers=[ - ('Content-Disposition', 'attachment; filename="%s"' % filename), + ('Content-Disposition', + 'attachment; filename="%s"' % filename), ('Content-Type', 'application/octet-stream') - ], cookies={'fileToken': int(token)}) + ], cookies={'fileToken': token}) @openerpweb.jsonrequest def initial_state(self, request): diff --git a/profiler/views/profiler.xml b/profiler/views/profiler.xml new file mode 100644 index 000000000..a67adc673 --- /dev/null +++ b/profiler/views/profiler.xml @@ -0,0 +1,14 @@ + + + + + +