Skip to content

[FIX] mis_builder: fix multi-company account display - #790

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
acsone:18.0-fix-multicompany-accounts
May 27, 2026
Merged

[FIX] mis_builder: fix multi-company account display#790
OCA-git-bot merged 1 commit into
OCA:18.0from
acsone:18.0-fix-multicompany-accounts

Conversation

@sbidoul

@sbidoul sbidoul commented May 26, 2026

Copy link
Copy Markdown
Member

fixes #779
fixes #774

supersedes and closes #751
supersedes and closes #756
supersedes and closes #775
supersedes and closes #782
supersedes and closes #789

Fixes multi-company MIS report issues in Odoo 18:

1. `account.account.company_id` was replaced by `company_ids` (Many2many)
   in Odoo 18. `_get_account_name` crashed on multi-company reports.

2. `account.code` is now company-dependent (stored in `code_store` jsonb).
   When viewing a report from a different company context, codes
   displayed as "False". Fix uses `account.display_name`.

3. Threads `query_companies` through `KpiMatrix` and `prepare_kpi_matrix()`
   for proper multi-company context resolution.

Co-Authored-By: Don Kendall <kendall@donkendall.com>

@ecino ecino left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM !

@sbidoul

sbidoul commented May 27, 2026

Copy link
Copy Markdown
Member Author

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-790-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 46acede into OCA:18.0 May 27, 2026
5 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2aabb34. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants