Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2452 Zobrazení

I have a problem with the thousands seperators. I have a field in an quotiation witch won't use the defined seperators.

I have 2 active languages, english and german. In both languages i have set the seperator to " ' ". But it doesn't apply at all to the field " l.price_subtotal".

So i tried  this out so far:

<span t-field="l.price_subtotal"/>

<span t-esc="'%.2f'%l.price_subtotal"/>

<span t-esc="'{0:,.2f}'.format(int(l.price_subtotal))"

<t t-esc="'{0:,.2f}'.format(int(l.price_unit*l.product_uom_qty))" />

<span t-field="l.price_subtotal" t-field-options='{"widget": "monetary"}'/>


Nearest i get to "43'014.00" is 43,014.00... 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
zář 23
21028
1
bře 21
4875
2
říj 20
12956
0
kvě 22
2160
1
dub 22
9392