summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-10-09 14:57:16 +0200
committerNicolas Martinelli <nim@odoo.com>2017-10-10 12:31:25 +0200
commite890682656b4739f489d34b954a1b1e8d9f78065 (patch)
tree142b6e71f3c715385d9b20bf21c4f0f94df74c98 /addons/web/static/src/js/views/basic/basic_model.js
parent0e28db88d13255434abf90af01675734d129d798 (diff)
[FIX] account: invoice analysis
- Create a customer invoice of 100, validate - Refund the invoice - Go to Accounting > Reports > Business Intelligence > Invoices - A total of 200 is shown, while it should be 0. - The same occurs with a vendor bill (-200 instead of 0) The invoice lines have their sign modified at two places when used in the report: - in method `_compute_price` of `account.invoice.line` - in method `_from` of `account.invoice.report` The signs are computed with the following combination: |Invoice type|`_compute_price`|`_from`|Report sign| |------------|----------------|-------|-----------| |out_invoice | +1| +1| +1| |in_invoice | +1| -1| -1| |out_refund | -1| -1| +1| |in_refund | -1| +1| -1| This is not correct: out_invoice and out_refund should have opposite signs. Same applies to in_invoice and in_refund. opw-772479 Closes #19954
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions