コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3651 ビュー

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
1895
4
5月 23
10536
1
4月 20
3260
5
8月 19
46505
1
1月 19
9632