mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
To reproduce the problem, you just had to: 1. Go to *Settings > Technical > User Interface > Views*. 2. Press *Export Current View > Excel*. You got this: ``` ReferenceError: assignment to undeclared variable tmp http://localhost:9069/web_export_view/static/src/js/web_export_view.js:95 Traceback: .on_sidebar_export_view_xls/</<@http://localhost:9069/web_export_view/static/src/js/web_export_view.js:95:29 .each@http://localhost:9069/web/static/lib/jquery/jquery.js:383:49 .on_sidebar_export_view_xls/<@http://localhost:9069/web_export_view/static/src/js/web_export_view.js:75:17 .each@http://localhost:9069/web/static/lib/jquery/jquery.js:383:49 .on_sidebar_export_view_xls@http://localhost:9069/web_export_view/static/src/js/web_export_view.js:68:9 Sidebar<.start/<@http://localhost:9069/web/static/src/js/widgets/sidebar.js:46:17 jQuery.event.dispatch@http://localhost:9069/web/static/lib/jquery/jquery.js:4640:50 jQuery.event.add/elemData.handle@http://localhost:9069/web/static/lib/jquery/jquery.js:4309:41 ``` Strict mode was preventing usage of an undeclared variable. Now it's declared.
22 lines
523 B
Python
22 lines
523 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2012 Agile Business Group
|
|
# © 2012 Domsense srl
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
{
|
|
'name': 'Export Current View',
|
|
'version': '9.0.1.0.2',
|
|
'category': 'Web',
|
|
'author': "Agile Business Group,Odoo Community Association (OCA)",
|
|
'website': 'http://www.agilebg.com',
|
|
'license': 'AGPL-3',
|
|
'depends': [
|
|
'web',
|
|
],
|
|
'data': [
|
|
'view/web_export_view.xml',
|
|
],
|
|
'installable': True,
|
|
'auto_install': False,
|
|
}
|