Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3632 Представления

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
1884
4
мая 23
10531
1
апр. 20
3246
5
авг. 19
46499
1
янв. 19
9622