summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.contentMenu.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-11-22 15:58:45 +0100
committerNicolas Martinelli <nim@odoo.com>2016-11-22 16:04:52 +0100
commit27b6d245e79cc0ae5cbd1cdc9ee1fe388075d333 (patch)
tree1bb37be5e0f6dc4e3e17236bbff7e2821e9a8ce1 /addons/website/static/src/js/website.contentMenu.js
parentb73518fe579f3902171969ce6ac7438bce64f925 (diff)
[FIX] account, account_tax_cash_basis: rounding
When tax cash basis is used, the user might face the error "Wrong credit or debit value in accounting entry !". A detailed use case can be found in issue #14158. The reason is that a float representation of `1.0` of the field `matched_percentage` will become `1.000...2` when used in Python. Therefore, such an expression such as `line.credit_cash_basis - line.credit * matched_percentage` might lead to a slightly negative value for the credit/debit, which will not pass the condition `CHECK (credit+debit>=0)`. Fixes #14158 opw-692797
Diffstat (limited to 'addons/website/static/src/js/website.contentMenu.js')
0 files changed, 0 insertions, 0 deletions