Comment 7 for bug 453269

Revision history for this message
Leigh Willard (leigh) wrote : Re: [Bug 453269] Re: english language fix

I looked in the code and understand what you are saying. I do pass
"dollar" instead of "dollars". However, what if I pass
amount_to_text(1.50,'en','dollars'), then it will print out:

one dollars and fifty cents

But it should be "one dollar and fifty cents".

I believe that making dollar plural should be done in the function
amount_to_text. Would this be possible?

Thanks,

Leigh

vra (openerp) wrote:
> Hello Leigh Willard,
>
> It is not the problem of amount_to_text_en.py, because in word
> conversion it will concatenate currency name or code which you have
> passed when you did call this function so simply pass dollars instead
> of only dollar if you pass company currency code or name simple change
> the currency code or name which you did pass from Financial
> Management/Configuration/Currencies menu.
>
> Hope this will help you.
>
> Thanks.
>
>