From 854c8c13a04f18a53636460bf123c7ff3ec589fe Mon Sep 17 00:00:00 2001 From: matteoopenf Date: Tue, 12 Mar 2024 16:21:31 +0100 Subject: [PATCH] [FIX][l10n_it_fatturapa_out] fix case the invois is a credit not --- l10n_it_fatturapa_out/wizard/efattura.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_it_fatturapa_out/wizard/efattura.py b/l10n_it_fatturapa_out/wizard/efattura.py index 023797768e71..5df890df7ae4 100644 --- a/l10n_it_fatturapa_out/wizard/efattura.py +++ b/l10n_it_fatturapa_out/wizard/efattura.py @@ -80,7 +80,7 @@ def format_price(line, sign=1, original_currency=False): res = fpa_to_eur(res, line) price = sign * res - if line.move_id.move_type == 'out_refund' and price > 0: + if line.move_id.move_type == "out_refund" and price > 0: price = price * -1 # XXX arrotondamento?