Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3688 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

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

Hope this could help 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 24
1927
4
maj 23
10601
1
kwi 20
3342
5
sie 19
46536
1
sty 19
9662