Infinite warning loop when tryton to pay a receivable line
When a party has more than one reverse move a warning is raised multiple times and you can not ignore it. I've managed to reproduce the issue on a fresh database with the following Lines to Pay fore the same party:
Amount Currency Move
"100,00" "Euro" "3"
"-40,00" "Euro" "2"
"-50,00" "Euro" "1"
The issue is reproducible when trying to pay the receivable from the "Financial -> Payments -> Lines To Pay" menu option. The problem is that the warning is checked inside a line loop [1], so when the loop has more than one result the Warning.check is recreated on the next iteration which causes to re-raise it despite it has been already accepted.
I've found the issue on 5.2 series. Older series are not affected.
[1] https://hg.tryton.org/modules/account_payment/file/bfbaeac712e0/account.py#l262