Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3655 Näkymät

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

Avatar
Hylkää
Paras vastaus

Hello,

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

Hope this could help 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
syysk. 24
1899
4
toukok. 23
10536
1
huhtik. 20
3265
5
elok. 19
46505
1
tammik. 19
9633