콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3728 화면

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 

아바타
취소
관련 게시물 답글 화면 활동
2
9월 24
2061
4
5월 23
10765
1
4월 20
3387
5
8월 19
46652
1
1월 19
9744