Skip to content
Snippets Groups Projects
Commit c0329854 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] account: tax computation on move


- Create the following invoice:
  Line 1: price 0.50, tax 15 %, analytic account set
  Line 2: price 0.10, tax 15 %, analytic account set
- Validate
- Go to the journal entry, cancel it
- Edit the entry, remove an analytic account

The tax line is recomputed from 0.10 to 0.09.

This is because the onchange performs the tax computation on all grouped
lines at once, which is equivalent to a 'round globally' configuration.

We need to split the logic depending on the tax calculation rounding
method.

opw-2117398

closes odoo/odoo#39960

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 472a8f7e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment