Skip to Content
Menú
This question has been flagged
1 Respondre
3637 Vistes

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'

@api.multi

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

return amount_to_text(amount, currency)

thanks to help me

Avatar
Descartar
Best Answer

Hello,

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

Hope this could help 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de set. 24
1886
4
de maig 23
10531
1
d’abr. 20
3247
5
d’ag. 19
46499
1
de gen. 19
9624