hi,
this is my code :
myclass.py
from num2words import num2words
number_text=fields.Char(string='Nombre de jour')
def calculatenumber(number_of_days_temp):
number_text = num2words(number_of_days_temp, lang='fr')
return {'value': {'number_text': number_text}}
.xml
<xpath expr="//field[@name='interim']" position="after">
<field name="number_of_days_temp" nolabel="1" on_change="calculatenumber(number_of_days_temp)"/>
</xpath>
<field name="number_of_days_temp" position="after">
<field name="number_text"/>
</field>
,i got this error i dont know how to solve it
TypeError: calculatenumber() takes exactly 1 argument (5 given)