[18.0][IMP] account_fiscal_year_closing: split closing by partner - #379
Open
odooNextev wants to merge 1 commit into
Open
[18.0][IMP] account_fiscal_year_closing: split closing by partner#379odooNextev wants to merge 1 commit into
odooNextev wants to merge 1 commit into
Conversation
NextEvTeo
force-pushed
the
18.0-impr-account-fiscal_year_closing
branch
from
June 26, 2026 14:15
eb8d872 to
ea771de
Compare
Add a "Split closing by partner" option that details receivable and payable closing lines per partner instead of a single aggregated line, reusing the existing account_partners_get / move_line_partner_prepare helpers, and reconciles the resulting lines by partner after posting. Foreign-currency balances are preserved on the per-partner lines, and account_partners_get now excludes cancelled moves so the per-partner totals match the aggregate. Two modules are touched on purpose: * account_fiscal_year_closing holds the feature. The per-account line generation is factored into _account_move_lines_get and _mapping_src_accounts_get so the behaviour can be extended without duplicating it. * account_fiscal_year_closing_range previously re-implemented the whole _mapping_move_lines_get (without calling super), which shadowed the new split whenever both modules were installed. It now overrides only the account selection (_mapping_src_accounts_get), so it reuses the base line generation and inherits the per-partner split for free.
NextEvTeo
force-pushed
the
18.0-impr-account-fiscal_year_closing
branch
from
June 26, 2026 14:31
ea771de to
62eae1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a "Split closing by partner" option that details receivable and payable closing lines per partner instead of a single aggregated line, reusing the existing account_partners_get / move_line_partner_prepare helpers, and reconciles the resulting lines by partner after posting. Foreign-currency balances are preserved on the per-partner lines, and account_partners_get now excludes cancelled moves so the per-partner totals match the aggregate.
Two modules are touched on purpose:
account_fiscal_year_closing holds the feature. The per-account line generation is factored into _account_move_lines_get and mapping_src_accounts_get so the behaviour can be extended without duplicating it.
account_fiscal_year_closing_range previously re-implemented the whole mapping_move_lines_get (without calling super), which shadowed the new split whenever both modules were installed. It now overrides only the account selection (_mapping_src_accounts_get), so it reuses the base line generation and inherits the per-partner split for free.