Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3675 Weergaven

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
Annuleer
Beste antwoord

Hello,

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

Hope this could help 

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
sep. 24
1918
4
mei 23
10570
1
apr. 20
3323
5
aug. 19
46520
1
jan. 19
9655