How can I change the way that VAT number is show using QWeb in Odoo -


I have a VAT client number showing the following code using report_invoice_document :

  & lt; Span t-field = "o.partner_id.vat" />  

However, the visible number is CO8000000001 and I want only numbers without letters and if possible it is formatted 800.000.000-1.

I was trying to adapt the field to get the documentation about T-field-option, but I had no luck with it.

Thank you.

Try:

  & lt; Span t-esc = "o.partner_id.vat [2:]" />  

t-esc supports the Python code.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -