From 22190051e00c3e551a897aa35b39f079f99506dd Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 24 Mar 2017 12:46:36 +0100 Subject: [PATCH] [FIX][web_export_view] Make it usable when int fields are present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/ - * Lorenzo Battistini - * Stefan Rijnhart - * Leonardo Pistone - * Rodney Vargas +* Simone Orsi +* Lorenzo Battistini +* Stefan Rijnhart +* Leonardo Pistone +* Rodney Vargas +* Jairo Llopis Maintainer ---------- diff --git a/web_export_view/__openerp__.py b/web_export_view/__openerp__.py index 19657ea2..041fec32 100644 --- a/web_export_view/__openerp__.py +++ b/web_export_view/__openerp__.py @@ -5,7 +5,7 @@ { 'name': 'Export Current View', - 'version': '9.0.1.0.1', + 'version': '9.0.1.0.2', 'category': 'Web', 'author': "Agile Business Group,Odoo Community Association (OCA)", 'website': 'http://www.agilebg.com', diff --git a/web_export_view/static/src/js/web_export_view.js b/web_export_view/static/src/js/web_export_view.js index 0f838f69..035ee7af 100644 --- a/web_export_view/static/src/js/web_export_view.js +++ b/web_export_view/static/src/js/web_export_view.js @@ -1,7 +1,7 @@ -//# -*- coding: utf-8 -*- -//# © 2012 Agile Business Group -//# © 2012 Therp BV -//# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +// -*- coding: utf-8 -*- +// © 2012 Agile Business Group +// © 2012 Therp BV +// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). odoo.define('web_export_view.Sidebar', function (require) { "use strict"; @@ -90,7 +90,7 @@ Sidebar.include({ } } else if (cell.classList.contains("oe_list_field_integer")) { - var tmp2 = text; + var tmp, tmp2 = text; do { tmp = tmp2; tmp2 = tmp.replace(