Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2458 Widoki

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... 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 23
21039
1
mar 21
4879
2
paź 20
12960
0
maj 22
2170
1
kwi 22
9401