I have the following code:
def action_adjust_amount_currency(self):
for rec in self:
if rec.manual_currency_rate_active==True:
rec.line_ids.debit=rec.line_ids.debit*rec.manual_currency_rate
rec.line_ids.credit=rec.line_ids.credit*rec.manual_currency_rate
else:
return False
I am having this error:
ValueError: Expected singleton: account.move.line(111717, 111718, 111719)
How can I fix it?