This question has been flagged
1 Reply
3506 Views

The default S/O template is mentioning VTA instead of VAT.

When I open this S/O template report in the report designer I noticed that the 'VTA' is just text. So I changed this to 'VAT'.

VTA : [[ (o.partner_id.vat) or removeParentNode('para') ]] changed to

VAT:[[ (o.partner_id.vat) or removeParentNode('para') ]]

For English customers this is perfect, but for my dutch customers it isn't, because now the translation doesn't work. The VAT term should be translated to 'BTW' but it doesn't, the translation only works when I use the term 'VTA' in the template.

Where can I find the translation settings for this in Openerp?

Any hints or help would highly appreciated,

Avatar
Discard
Author Best Answer

After a lot of troubleshooting I did the following,

I deleted the whole VTA line from the Sales Order template and replaced it with:

[[ (o.partner_id.lang=='nl_NL')and 'BTW: ' or 'VAT: ' ]] [[ (o.partner_id.vat) ]]

At least this is working as i'm expecting it to work. Make sure you have all the spaces in place.

If anybody knows how to make it better/robust, then please let me know.

Avatar
Discard