Skip to content

[FIX] account_operating_unit: prevent cross-company journal and OU assignment - #889

Open
luc-demeyer wants to merge 1 commit into
OCA:18.0from
luc-demeyer:18.0-fix-account_operating_unit-multi-company
Open

luc-demeyer wants to merge 1 commit into
OCA:18.0from
luc-demeyer:18.0-fix-account_operating_unit-multi-company

Conversation

@luc-demeyer

Copy link
Copy Markdown
Contributor

account_operating_unit multi-company fixes:

  • Fix _default_operating_unit_id to only return an OU belonging to the current company, preventing cross-company OU assignment on move lines.
  • Fix journal selection to filter by both company and operating unit, replacing the incomplete domain in _onchange_operating_unit.

@OCA-git-bot OCA-git-bot added mod:account_operating_unit Module account_operating_unit series:18.0 labels Nov 9, 2026
@ByteMeAsap

Copy link
Copy Markdown

@luc-demeyer , Looks good to me !! . Can you please increase the test coverage?

@luc-demeyer
luc-demeyer force-pushed the 18.0-fix-account_operating_unit-multi-company branch 3 times, most recently from d0d35d8 to ee00268 Compare November 15, 2026 09:05
…signment

- Fix _default_operating_unit_id to only return an OU belonging to the
  current company, preventing cross-company OU assignment on move lines.
- Fix journal selection to filter by both company and operating unit,
  replacing the incomplete domain in _onchange_operating_unit.
@luc-demeyer
luc-demeyer force-pushed the 18.0-fix-account_operating_unit-multi-company branch from ee00268 to dd17ebb Compare November 15, 2026 09:22
@luc-demeyer

Copy link
Copy Markdown
Contributor Author

@ByteMeAsap
Test coverage ok now. Can you approve this PR ?

@ByteMeAsap ByteMeAsap 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!!

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

Labels

mod:account_operating_unit Module account_operating_unit series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants