Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3645 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

Hello,

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

Hope this could help 

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 24
1893
4
трав. 23
10532
1
квіт. 20
3248
5
серп. 19
46504
1
січ. 19
9632