Skip to content
Snippets Groups Projects
Commit bd621fd4 authored by Guillaume (guva)'s avatar Guillaume (guva)
Browse files

[FIX] account: unbalanced entry with price_unit 0


Steps to reproduce:

- Create invoice for a prudict at price X > 0
- Change the price to 0 before saving
- Then save it
-> Error : Cannot create unbalanced journal entry

This bug was introduced in 14.0 with this commit fe7d56dc32c71e04b54de9dbd756a48942a832f4
With this commit, we use an ugly condition to catch the
specific case of a tax with price included and amount type division
to avoid changing the price unit if the line balance is zero.

opw-2822635

closes odoo/odoo#89632

Signed-off-by: default avatarLaurent Smet <las@odoo.com>
parent bd00edf6
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