[MERGE] [FIX] account_voucher: in recompute_voucher_lines, ensure the price value...
authorMartin Trigaux <mat@openerp.com>
Wed, 23 Apr 2014 10:18:47 +0000 (12:18 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 23 Apr 2014 10:18:47 +0000 (12:18 +0200)
commita6797e68e695d3d421f29fc1c2f0cf54c1c71e5e
tree6a5c4f0816792f0c4ea1e45aae6575b904209843
parentf43f406355f6f0b464b900a39355db809c5cf639
parent210adf77cbe888132d04cafb872b4174eecf5451
[MERGE] [FIX] account_voucher: in recompute_voucher_lines, ensure the price value is not modified when computing the writeoff_amount.

Using the remaining amount for writeoff does not make sense as the amount is already in credit or debit lines.
This issue could be observed in the payment wizard where the execution of _compute_writeoff_amount (through onchange) would be a negative value at the first execution.

bzr revid: mat@openerp.com-20140423101847-s0efihzqe7jcdcps