Search view : Commas in float field = error (even if it is the separator of the language)

Bug #988201 reported by Francois Degrave
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
OpenERP R&D Web Team

Bug Description

Hi!

Using fr_BE as language, I get an error whenever I use a comma (,) in a float field of a search view -- for example, the 'total' field on the invoice view.

It should be dependent on the language specificity or, at least, both dots and commas should work.

Cheers!

François

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :

Hello Francois Degrave,

I have checked your issue with latest trunk and it's work as expected. Would you please provide us more information like version of OE, which error you did faced with the related steps. Would you please check the attached video and informed us where you faced the problem.

Thanks.

Revision history for this message
Vishal Parmar(Open ERP) (vpa-openerp) wrote :
Revision history for this message
Francois Degrave (fde-be) wrote :

In your video you don't use fr_BE as a language, neither another language using commas as *decimal separator*.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Francois,

Thanks or your reply.

I have faced the same problem when I am using a fr_BE language and set a decimal separator (,). I am not able to search with total filed of the invoice on advance search.

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Hello François.

The problem is due to a wrong configuration. When you install fr_BE, the decimal separator is not setted to the country's standard, it is configured as the english convention. In the english convention, the comma can be used is used as a thousand separator. For example we will write "15,423.85". The behavior of the web client is simply to ignore the thousand separator. So the behavior of the web client is completely normal according to its configuration. I also tested by customizing the thousand and decimal separators and that worked fine.

We could consider this incorrect default configuration as a openobject-server issue. I asked to odo and he said it is known since a long time and that he has no desire to try to solve it. Your best option is to manually configure the your language, which should not be very difficult.

Changed in openerp-web:
status: Confirmed → Invalid
Revision history for this message
Francois Degrave (fde-be) wrote :

No, you are wrong. My decimal separator is well configured, and yet there is an error during the search. I know I'm dumb but I'm not THAT stupid ;-)

Note that this error is only on client side! I get the error (in french of course, since it occurs only in french) "Recherche non valide déclenché depuis la vue de recherche"

Changed in openerp-web:
status: Invalid → New
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Did you removed/replaced the thousands separator ? If you didn't it won't work.

Changed in openerp-web:
importance: Low → Undecided
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.