summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-08-19 13:09:24 +0000
committerNans Lefebvre <len@odoo.com>2019-08-19 14:31:45 +0000
commit67d82b875cddba7bf28c3f4eba295df31dce3d48 (patch)
tree1fd0ae5fc8e5c50a077dc5b0c9b8a4e2d97ec89a /addons/web_editor/static/src/js
parent9e579173762f281487a8ae988511355ce8b1a5cc (diff)
[FIX] account: round balance in the default_get of account move lines
Edit journal entries (account.move). Create a new line. Credit and debit values are filled in with the default get. Conveniently, if lines_ids is given in context this computes the right value to balance existing move lines. However, this is done by float operations. Let e be the resulting epsilon in balance. As a result a new line may contain e, 0 for credit, debit (or respectively). If the user fills in the 0 value with v, then the new line contains e, v. This violates the constraint that exactly one of the two values should be nonzero. We get the currency from the journal to round adequately the balance. opw 2046137 closes odoo/odoo#35815 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions