As explained on my bug report, the amount on the payment voucher must be negative in order to have the accounting entries generated with debit and credit "the other way around". I wrote a patch (see enclosed) which fixes the issue : the payment voucher generated from a customer/supplier refund as a negative amount.
I just opened the same bug report (cf https:/ /bugs.launchpad .net/openobject -addons/ +bug/920863) and someone noticed it was a duplicate of this bug. So let's continue to discuss this bug here.
As explained on my bug report, the amount on the payment voucher must be negative in order to have the accounting entries generated with debit and credit "the other way around". I wrote a patch (see enclosed) which fixes the issue : the payment voucher generated from a customer/supplier refund as a negative amount.