0
2 Answers
0
Best Answer
Hi,
First of all you have to correct the data type of the field amount_response, is it expected to hold integer or a string ? As per written function it has to be string, so field type should be Char or Text. Then modify the function as follows and see:
def _amount_response(self):
for rec in self:
amount_response = ''
if rec.currency_id:
amount_response = str(rec.currency_id.amount_to_text(rec.amount_total))
rec.amount_response = amount_response
Thanks
In the qweb I am commanding to call the field in this way: