跳至内容
菜单
此问题已终结
2453 查看

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

形象
丢弃
相关帖文 回复 查看 活动
3
9月 23
21031
1
3月 21
4878
2
10月 20
12956
0
5月 22
2161
1
4月 22
9399