Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][web_export_view] Remove monetary formatting #594

Merged
merged 2 commits into from
Mar 31, 2017

Conversation

yajo
Copy link
Member

@yajo yajo commented Mar 30, 2017

Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.

This is a forward-port of #592.

@Tecnativa

Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
@yajo yajo added this to the 10.0 milestone Mar 30, 2017
@yajo yajo self-assigned this Mar 30, 2017
@rafaelbn
Copy link
Member

@yajo I cannot test it, runbot see:

2017-03-30_10-54-51

// Always use a `.` as decimal separator
.replace(_t.database.parameters.decimal_point, ".")
// Remove non-numeric characters
.replace(/[^\d\.-]/g, "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is semicolon here that avoids proper enclosure

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on runbot

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected on runbot

@pedrobaeza pedrobaeza merged commit 3d502aa into OCA:10.0 Mar 31, 2017
@pedrobaeza pedrobaeza deleted the 10.0-web_export_view-fix_monetary branch March 31, 2017 11:55
JBF91 pushed a commit to JBF91/web that referenced this pull request Nov 14, 2017
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
JBF91 pushed a commit to JBF91/web that referenced this pull request Nov 14, 2017
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
mstuttgart pushed a commit to multidadosti-erp/web that referenced this pull request Mar 15, 2018
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
pedrobaeza pushed a commit to JBF91/web that referenced this pull request Aug 15, 2018
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
valtterilattu pushed a commit to valtterilattu/web that referenced this pull request Apr 3, 2019
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
ernestotejeda pushed a commit to Tecnativa/web that referenced this pull request May 3, 2019
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
tschanzt pushed a commit to camptocamp/web that referenced this pull request Jun 19, 2019
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
CarlosRoca13 pushed a commit to Tecnativa/web that referenced this pull request Nov 4, 2020
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
vancouver29 pushed a commit to elego/web that referenced this pull request Aug 18, 2022
Monetary fields were being exported empty because the parsing failed.

In the way of correctly exporting them as numbers, this chunk of code's performance has been improved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants