From 51fbb8997632a396e414d1fbe3f3884646c74027 Mon Sep 17 00:00:00 2001 From: "John Laterre (jol)" Date: Wed, 27 Apr 2022 07:21:48 +0000 Subject: [PATCH] [REV] account: display correct price_unit with 100% taxes This reverts commit fe7d56dc32c71e04b54de9dbd756a48942a832f4. The original commit created an unwanted side effect that was being solved here https://github.com/odoo/odoo/pull/89632 But while testing the new PR, it appeared that the initial bug was no longer there, even without the original fix. Hence this PR. closes odoo/odoo#89895 X-original-commit: af01dac8e35fe814b1d42a1620ff766908425b33 Signed-off-by: Laurent Smet Signed-off-by: John Laterre --- addons/account/models/account_move.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 14f2545f559..d7b1b3c4ab1 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3909,9 +3909,8 @@ class AccountMoveLine(models.Model): 'discount': 0.0, 'price_unit': amount_currency / (quantity or 1.0), } - elif not discount_factor or not amount_currency: - # balance of line is 0, but discount == 100% or taxes (price included) == 100%, - # so we display the normal unit_price + elif not discount_factor: + # balance of line is 0, but discount == 100% so we display the normal unit_price vals = {} else: # balance is 0, so unit price is 0 as well