Skip to content

[19.0][PORT] 790 from 18.0 - #794

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
acsone:19.0-790-port
May 28, 2026
Merged

[19.0][PORT] 790 from 18.0#794
OCA-git-bot merged 1 commit into
OCA:19.0from
acsone:19.0-790-port

Conversation

@sbidoul

@sbidoul sbidoul commented May 28, 2026

Copy link
Copy Markdown
Member

Port #790 from 18.0 to 19.0.

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>
@sbidoul

sbidoul commented May 28, 2026

Copy link
Copy Markdown
Member Author

Trivial forward port, tested it works the same as in 18

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@OCA-git-bot
OCA-git-bot merged commit d5ba6ae into OCA:19.0 May 28, 2026
5 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@sbidoul
sbidoul deleted the 19.0-790-port branch May 28, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants