diff --git a/account_fiscal_year_closing/models/account_fiscalyear_closing.py b/account_fiscal_year_closing/models/account_fiscalyear_closing.py index 3393971387e..2914f75b6e3 100644 --- a/account_fiscal_year_closing/models/account_fiscalyear_closing.py +++ b/account_fiscal_year_closing/models/account_fiscalyear_closing.py @@ -452,13 +452,19 @@ def _mapping_move_lines_get(self): for account in src_accounts: closing_type = self.closing_type_get(account) balance = False - if closing_type == "balance": + if closing_type == "balance" or ( + closing_type == "unreconciled" + and account.internal_type not in ["receivable", "payable"] + ): # Get all lines lines = account_map.account_lines_get(account) balance, move_line = account_map.move_line_prepare(account, lines) if move_line: move_lines.append(move_line) - elif closing_type == "unreconciled": + elif closing_type == "unreconciled" and account.internal_type in [ + "receivable", + "payable", + ]: # Get credit and debit grouping by partner partners = account_map.account_partners_get(account) for partner in partners: