Odoo Help


Error in odoo server ( version 8)

on 6/22/16, 6:29 AM 668 views

hi ,

i   added the function that display amout total in text but when i want to display report of invoice i had this error

File "/opt/odoo/addons/recu_facture/facture.py", line 20

def amount_to_text(self, amount, currency='Euro'):


IndentationError: unexpected indent

this my code python :

class account_invoice(models.Model):

_name = 'account.invoice'

_inherit = 'account.invoice'


def amount_to_text(self, amount, currency='Euro'):

return amount_to_text(amount, currency)

thanks to help me

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 6/22/16, 7:26 AM


This is an indentation ['spaces'] error, you can refer to this question ...

Hope this could help 

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: 6/22/16, 6:29 AM
Seen: 668 times
Last updated: 6/23/16, 5:58 AM