Skip to content

Commit

Permalink
[FIX][l10n_it_reverse_charge] fix case there is a line with abbuoni r…
Browse files Browse the repository at this point in the history
…ef issue #3581

[FIX][l10n_it_reverse_charge] fix case there is a line with abbuoni ref issue #3581
  • Loading branch information
matteoopenf authored and Borruso committed Jan 26, 2024
1 parent 9223c57 commit dc2d455
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions l10n_it_reverse_charge/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright 2017 Lorenzo Battistini - Agile Business Group
# Copyright 2017 Marco Calcagni - Dinamiche Aziendali srl
# Copyright 2023 Simone Rubino - TAKOBI
# Copyright 2023 Matteo Mircoli - Openforce srls
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpg).

{
Expand Down
5 changes: 4 additions & 1 deletion l10n_it_reverse_charge/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def _rc_get_move_line_to_reconcile(self):
is_zero = self.currency_id.is_zero
for move_line in self.line_ids:
field_value = getattr(move_line, line_field)
if not is_zero(field_value):
if not is_zero(field_value) and move_line.account_internal_type in (
"receivable",
"payable",
):
break
else:
raise UserError(
Expand Down

0 comments on commit dc2d455

Please sign in to comment.