Skip to content

[18.0][IMP] account_fiscal_year_closing: split closing by partner - #379

Open
odooNextev wants to merge 1 commit into
OCA:18.0from
odooNextev:18.0-impr-account-fiscal_year_closing
Open

[18.0][IMP] account_fiscal_year_closing: split closing by partner#379
odooNextev wants to merge 1 commit into
OCA:18.0from
odooNextev:18.0-impr-account-fiscal_year_closing

Conversation

@odooNextev

@odooNextev odooNextev commented Jun 26, 2026

Copy link
Copy Markdown

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.

@OCA-git-bot OCA-git-bot added mod:account_fiscal_year_closing Module account_fiscal_year_closing series:18.0 labels Jun 26, 2026
@odooNextev odooNextev changed the title [IMP] account_fiscal_year_closing: split closing by partner [18.0][IMP] account_fiscal_year_closing: split closing by partner Jun 26, 2026
@NextEvTeo
NextEvTeo force-pushed the 18.0-impr-account-fiscal_year_closing branch from eb8d872 to ea771de Compare June 26, 2026 14:15
@OCA-git-bot OCA-git-bot added the mod:account_fiscal_year_closing_range Module account_fiscal_year_closing_range label Jun 26, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:account_fiscal_year_closing_range Module account_fiscal_year_closing_range mod:account_fiscal_year_closing Module account_fiscal_year_closing series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants