diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-01-17 08:46:15 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-01-17 11:58:45 +0000 |
| commit | 990a299b3ac69751054c2b17baa0aebd95c404c0 (patch) | |
| tree | 8b1e510c026c6ac9e01d451c8bcb9eb4ad103230 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | a1c175bae79953e0c6b4cf055b9d016c98ba932a (diff) | |
[FIX] account: purchase receipt with included tax
- Create a 10 % purchase tax with price included
- Create a Purchase Receipt with a price unit of 100 and the 10 % tax
The total is 90.91 + 8.26 = 99.17.
The root cause of the issue is that... actually I have no idea. For some
mysterious reasons, in case of an `in_invoice`, `in_refund` and
`in_receipt`, we go through `_compute_base_line_taxes` when the price is
changed. In case of the `in_receipt`, we compute the tax based on the
`balance` (= 90.91) rather than the price unit, which screws things up.
Note that in case of `out_*` moves, we simply don't go through
`_compute_base_line_taxes` at all, so Sales Receipts are fine.
opw-2170975
closes odoo/odoo#43475
X-original-commit: 1bbf66937c2b4fdb45318652e3ed1147f1edd29b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
