From fa23b2b5786bd98c67f34697e31839aa2d4a1eba Mon Sep 17 00:00:00 2001 From: niyasraphy Date: Fri, 21 Oct 2022 05:24:07 +0000 Subject: [PATCH] [FIX] account: Compute method failed to assign account.move(,).show_discount_details closes odoo/odoo#105107 X-original-commit: d1b37264ae9ae85f5c19fdd1ea62bd9a3a637dd0 Signed-off-by: Nicolas Viseur (vin) --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 33aba6451a3..499bd3632f5 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1257,6 +1257,7 @@ class AccountMove(models.Model): invoice.show_discount_details = any(line.discount_date for line in payment_term_lines) invoice.show_payment_term_details = len(payment_term_lines) > 1 or invoice.show_discount_details else: + invoice.show_discount_details = False invoice.show_payment_term_details = False @api.depends('partner_id', 'invoice_source_email', 'partner_id.name')