Payment kind of move line does not support opposite operation of the account type
As the domain on line field of payment shows the kind of operation only depends on the sign of debit and credit. So the computed kind of move line should not depend on the account type.
Ref. https://discuss.tryton.org/t/clearing-refund-payment/6866/