~openerp-community/web-addons/7.0-web_export_view_CSV

« back to all changes in this revision

Viewing changes to web_export_view/static/js/web_advanced_export.js

  • Committer: Lorenzo Battistini
  • Date: 2013-08-05 14:24:40 UTC
  • Revision ID: lorenzo.battistini@agilebg.com-20130805142440-lcacf3qx21ic4kh9
[FIX] reverting change as it doesn't handle decimal separators != '.'

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                        $.each(export_columns_keys,function(){
73
73
                            cell = $row.find('td[data-field="'+this+'"]').get(0);
74
74
                            text = cell.text || cell.textContent || cell.innerHTML || "";
75
 
                            if (cell.classList.contains("oe_list_field_float")){
76
 
                               export_row.push(parseFloat(text));
77
 
                            }
78
 
                            else if (cell.classList.contains("oe_list_field_integer")){
79
 
                               export_row.push(parseInt(text));
80
 
                            }
81
 
                            else{
82
 
                               export_row.push(text.trim());
83
 
                            }
 
75
                            export_row.push(text.trim());
84
76
                        });
85
77
                        export_rows.push(export_row);
86
78
                    };