sao and comma decimal separator

46 views
Skip to first unread message

Richard PALO

unread,
Jun 22, 2018, 2:31:21 AM6/22/18
to tryton
How to get SAO client data entry to accept numeric keypad decimal as comma
which seems to be required for debit/credit entries? I'm using French locale.

No problem in standard client.
--

Richard PALO

Richard PALO

unread,
Jun 22, 2018, 2:42:46 AM6/22/18
to try...@googlegroups.com
Thought I would double check with chromium and surprisingly there it *is* converted to a ','.
So to rephrase the question, how to turn this on with mozilla firefox?

--

Richard PALO

Cédric Krier

unread,
Jun 22, 2018, 3:40:06 AM6/22/18
to try...@googlegroups.com
You should ask Firefox to support it: https://bugs.tryton.org/msg36685

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Richard PALO

unread,
Jun 22, 2018, 1:15:01 PM6/22/18
to try...@googlegroups.com
Le 22/06/2018 à 09:35, Cédric Krier a écrit :
> On 2018-06-22 08:42, Richard PALO wrote:
>> Le 22/06/2018 à 08:31, Richard PALO a écrit :
>>> How to get SAO client data entry to accept numeric keypad decimal as comma
>>> which seems to be required for debit/credit entries? I'm using French locale.
>>>
>>> No problem in standard client.
>>>
>> Thought I would double check with chromium and surprisingly there it *is* converted to a ','.
>> So to rephrase the question, how to turn this on with mozilla firefox?
>
> You should ask Firefox to support it: https://bugs.tryton.org/msg36685
>

Well, this may be over simplistic, but noticing this
> https://stackoverflow.com/questions/24407109/new-webkits-convert-decimal-comma-to-dot-and-vice-versa-in-number-type-inputs

and trying https://codepen.io/anon/pen/xDvCB?editors=100
I notice that I can use the keypad decimal just fine in the fox and chromium/vivaldi.
I can also use the standard keyboard ',' (or '.' for that matter)

Is there perhaps something fudging things up in an intermediate layer?

--

Richard PALO

Josias Pérez

unread,
Jul 4, 2018, 12:55:06 PM7/4/18
to tryton
Hi,

I will thanks how to change dot per comma (or the other way around) in tryton and sao. I work with spanish localization and in my country use dot for decimals and comma for miles separator.

I can use dot for enter decimals but after entering the data it is display with comma for decimals and dots per commas.

I reviewed the custom location setting on windows but it's correctly configured.

Thanks in advance.

Sergi Almacellas Abellana

unread,
Jul 5, 2018, 3:27:20 AM7/5/18
to try...@googlegroups.com
El 04/07/18 a les 18:38, Josias Pérez ha escrit:
> I will thanks how to change dot per comma (or the other way around) in tryton and sao. I work with spanish localization and in my country use dot for decimals and comma for miles separator.
>
> I can use dot for enter decimals but after entering the data it is display with comma for decimals and dots per commas.
>
> I reviewed the custom location setting on windows but it's correctly configured.
The numeric fields are displayed using the numeric format on the
language. If you have diferent settings you should create a derivative
language (so all the translations are inherit) and set your custom
formating.

This is how the "Spanish (Latin American)" language works.
I'm wondering if you should not use this Language instead of the Spanish
one as it has the numeric settings as you are requesting.

Hope it helps.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Jul 5, 2018, 3:45:05 AM7/5/18
to try...@googlegroups.com
To be clear, sao does not use the formatting option of the language
defined in trytond. But only the language code, to request the browser
to format with toLocalString [1]

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
Reply all
Reply to author
Forward
0 new messages