diff options
| author | Cédric Snauwaert <csn@openerp.com> | 2017-07-03 11:22:32 +0200 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2017-07-03 11:22:32 +0200 |
| commit | b1082348e7a0875349bea3d8ccdc3556a5bc0fa0 (patch) | |
| tree | b2e92393dcc2c9dcd77c5913d0e267cb63a53022 /addons/web_editor/static/src/less/web_editor.ui.less | |
| parent | aa578e1bee460b0a6e1fda2fd3b570ca32e36244 (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/web_editor/static/src/less/web_editor.ui.less')
0 files changed, 0 insertions, 0 deletions
