4

I try to print invoice lines in invoice report. for

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

and for

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

there is one output: "111.11 $" But I need in lines price without sign.

If I make something like

<span t-esc="round(l.price_total, 2)"/>

it works, yes, but I lose currency formatting

  1. Is there a way to tell monetary widget it shouldn't show currency?

    "display_currency": "False" doesn't work (

  2. Where is monetary widget code? I can't find it in source files (

Community
  • 1
  • 1
SkiBY
  • 63
  • 1
  • 7

1 Answers1

4

try this to remove currency sign from qweb. with currency formatinng

<span t-esc="'{:,.2f}'.format(doc.price_subtotal)" >

OR this will print without currency formating

<span t-field="doc.price_subtotal" t-field-options="{'widget':'False'}"/>
Alpesh Valaki
  • 1,611
  • 1
  • 16
  • 36