Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3539 Vistas

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
Mejor respuesta

Hello,

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

Hope this could help 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 24
1756
4
may 23
10368
1
abr 20
3145
5
ago 19
46358
1
ene 19
9466