summaryrefslogtreecommitdiff
path: root/addons/account_tax_python
diff options
context:
space:
mode:
authorCédric Snauwaert <csn@openerp.com>2017-07-03 11:22:32 +0200
committerqdp-odoo <qdp@odoo.com>2017-07-03 11:22:32 +0200
commitb1082348e7a0875349bea3d8ccdc3556a5bc0fa0 (patch)
treeb2e92393dcc2c9dcd77c5913d0e267cb63a53022 /addons/account_tax_python
parentaa578e1bee460b0a6e1fda2fd3b570ca32e36244 (diff)
[FIX] account: reconciliation, fix query that fetch perfect line match (#17969)
When opening the reconciliation widget, there are two queries that are done, The first one is to find a move line that perfectly match the statement line and is done in SQL for performance issue. The second one is a search with a domain to find all the lines that could be used in that reconciliation. 1) There was a mismatch between the two. The domain fetches lines that have a payment_id while the SQL query does not. Which is inconsistent 2) In some case, we did not find a perfect match on the amount using the SQL query because of a rounding error. Example is for amount 3,3. In python: 3,3 is represented like this 3,3000000000003 and doing a float_round of that value still returns 3,3000000000003 Since we want to match on an exact amount, using float_repr is needed to fix that error
Diffstat (limited to 'addons/account_tax_python')
0 files changed, 0 insertions, 0 deletions