Skip to content

[18.0][FEAT] mis_builder: companies as columns in multi-company reports#6

Closed
dnplkndll wants to merge 1 commit into
18.0from
18.0-feat-company-columns
Closed

[18.0][FEAT] mis_builder: companies as columns in multi-company reports#6
dnplkndll wants to merge 1 commit into
18.0from
18.0-feat-company-columns

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented Mar 28, 2026

Summary

Adds the ability to show each company as a separate column in multi-company MIS reports, plus the bugfix for account code display and demo data.

Screenshots

Companies as Columns — Live Preview

YourCompany | Branch Office | Total — each with real posted journal entries:

Report Preview

Column Configuration

"Generate Company Columns" button auto-creates one period per company + Total sum column:

Config

How to use

  1. Enable Multi Company on a report instance, add companies
  2. Enable Comparison Mode, go to Columns tab
  3. Click "Generate Company Columns"
  4. Activate both companies in the company switcher
  5. Preview — each company has its own column + Total

Changes

Feature: companies as columns

  • company_id field on mis.report.instance.period — filters column to single company
  • action_generate_company_columns() — auto-creates one period per company + Total sum
  • companies_as_columns flag — auto-detected, skips [Company] row suffix

Fix: multi-company account codes (OCA OCA#779)

  • with_company() for account code resolution
  • query_companies threading through KpiMatrix

Demo data

  • Branch Office company + expense accounts + posted journal entries for both companies
  • Multi-company report instance with YourCompany | Branch Office | Total columns

Closes OCA#783, OCA#779

🤖 Generated with Claude Code

@dnplkndll dnplkndll force-pushed the 18.0-feat-company-columns branch 2 times, most recently from 52c56ab to 3fa5fa0 Compare March 28, 2026 12:38
@dnplkndll dnplkndll closed this Mar 29, 2026
@dnplkndll dnplkndll force-pushed the 18.0-feat-company-columns branch from 7194710 to 30b7d6f Compare March 29, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[18.0][FEAT] Multi-company reports: companies as columns instead of extra rows

1 participant