Odoo Help


Error amount total to words

on 9/21/16, 8:26 AM 346 views

hi everyone,

i have problem in conversion amount total to words  in the invoice , 'amount_text' is the field that contain the value of conversion but it didn't get the amount total taxed , i will show u the code :


    @api.multi    def convert_to_text(self, amount,currency='Dirhams'):
           amount_fr = convertion.trad(amount,currency).upper()       

            return {'value': {'amount_text': amount_fr  }}


<xpath expr="//field[@name='amount_total']" position="replace">                         

<field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"  on_change="convert_to_text(amount_total)"/>

<field name="comment" position="before">               

<field name="amount_text"/>          


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/21/16, 8:26 AM
Seen: 346 times
Last updated: 9/21/16, 3:23 PM