Skip to content

[18.0][ADD] mis_builder: add multi-company demo data#788

Open
dnplkndll wants to merge 1 commit into
OCA:18.0from
ledoent:18.0-add-multicompany-demo
Open

[18.0][ADD] mis_builder: add multi-company demo data#788
dnplkndll wants to merge 1 commit into
OCA:18.0from
ledoent:18.0-add-multicompany-demo

Conversation

@dnplkndll
Copy link
Copy Markdown

Summary

Adds demo data exercising multi-company MIS reports:

  • A second company with expense accounts and journal entries
  • A mis.report.instance configured with multi_company=True and query_company_ids set across both companies
  • A _post_demo_moves() helper on mis.report.instance that posts the seeded draft journal entries so the demo report renders non-zero values

Only loaded when demo data is enabled (--without-demo=False).

Why split from #782?

Per @sbidoul's review on #782, splitting the demo data out so the runtime fix can move independently. The fix in #782 stands on its own; this PR adds the fixture that makes the multi-company rendering visible/testable from the demo install.

Test plan

  • -i mis_builder --without-demo=False
  • Open "Multi-Company Demo Report" — confirm both companies appear with non-zero totals and account codes render correctly
  • Without #782 applied: rendering should expose the account.company_id AttributeError this demo is designed to surface

Companion of: #782

Adds demo data that creates a second company with expense accounts,
journal entries, and a multi-company MIS report instance. Useful for
exercising multi-company report rendering in tests and demos. Only
loaded when demo data is enabled.

Includes a `_post_demo_moves()` helper on `mis.report.instance` that
posts the seeded draft journal entries so the demo report renders
non-zero values.
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@sbidoul
Copy link
Copy Markdown
Member

sbidoul commented May 13, 2026

Thanks. I'll review this topic and work on the v19 migration by end of May, likely during the sprint in Spain .

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.

3 participants