Skip to content

[18.0][FIX] mis_builder: company_id -> company_ids on account.account#789

Closed
fsmw wants to merge 1 commit into
OCA:18.0from
fsmw:18.0
Closed

[18.0][FIX] mis_builder: company_id -> company_ids on account.account#789
fsmw wants to merge 1 commit into
OCA:18.0from
fsmw:18.0

Conversation

@fsmw

@fsmw fsmw commented May 19, 2026

Copy link
Copy Markdown
Contributor

In v18, account.account field company_id (Many2one) was replaced by company_ids (Many2many). This caused an AttributeError when computing multi-company reports with auto-expand accounts enabled — kpimatrix._get_account_name() accessed the removed company_id field.

Fix: Use company_ids[0].name to match the original single-company display intent (same pattern as account-financial-reporting#1293).

Fixes #774

In v18, account.account company_id (Many2one) was replaced by company_ids
(Many2many). This caused AttributeError when computing multi-company reports
with auto-expand accounts enabled in kpimatrix._get_account_name().

Fix: use company_ids[0].name to match original single-company display intent.

Closes OCA#774
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@sbidoul

sbidoul commented May 26, 2026

Copy link
Copy Markdown
Member

I reviewed all PRs about this topic and consolidated a solution in #790. Thanks for helping.

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.

[18.0][mis_builder] AttributeError: account.account has no attribute company_id when computing multi-company report

3 participants