[FIX] account_anglo_savon: round prices according to account precision to avoid getti...
authorMartin Trigaux <mat@openerp.com>
Fri, 8 Aug 2014 10:29:47 +0000 (12:29 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 8 Aug 2014 12:04:46 +0000 (14:04 +0200)
commit1d826a6051e86796949c3ea725cee1d914e9d741
tree120dd80bf5e5efc17bedbf7f74f3514f8897795b
parentd31faceb67fd87acaca00365dcfc28925b08a37f
[FIX] account_anglo_savon: round prices according to account precision to avoid getting unbalanced move

The standard move_line_get from account.invoice returns prices rounded (price_subtotal field as account precision) while the anglo-saxon module could return dict with non-rounded prices.
With amounts with bigger precision, we could get a difference of a few cents when comparing the debit/credits and then not be able to balance the invoice (opw 597208).
addons/account_anglo_saxon/invoice.py