Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP][14.0] account_fiscal_year_closing do not split by partner account of type not in receivable or payable #272

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions account_fiscal_year_closing/models/account_fiscalyear_closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading