diff --git a/web_export_view/__openerp__.py b/web_export_view/__openerp__.py index a1f9efcc..19657ea2 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.0', + 'version': '9.0.1.0.1', '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 ae8c800b..0f838f69 100644 --- a/web_export_view/static/src/js/web_export_view.js +++ b/web_export_view/static/src/js/web_export_view.js @@ -7,6 +7,7 @@ odoo.define('web_export_view.Sidebar', function (require) { "use strict"; var core = require('web.core'); +var formats = require('web.formats'); var Sidebar = require('web.Sidebar'); var _t = core._t; @@ -75,7 +76,9 @@ Sidebar.include({ var cell = $row.find('td[data-field="' + this + '"]').get(0); var text = cell.text || cell.textContent || cell.innerHTML || ""; if (cell.classList.contains("oe_list_field_float")) { - export_row.push(instance.web.parse_value(text, {'type': "float"})); + export_row.push( + formats.parse_value(text, {'type': "float"}) + ); } else if (cell.classList.contains("oe_list_field_boolean")) { var data_id = $('