Skip to content

Conversation

@lef-adhoc
Copy link
Contributor

The explicit company domain in journal_id field is redundant because the check_company=True attribute already handles company filtering correctly.

The check_company mechanism automatically filters records based on the appropriate companies, including parent companies when working with child companies (branches). This provides the correct Odoo behavior for multi-company scenarios.

This simplification makes the code cleaner and aligns with standard Odoo patterns for company-dependent fields.

The explicit company domain in journal_id field is redundant because
the check_company=True attribute already handles company filtering
correctly.

The check_company mechanism automatically filters records based on
the appropriate companies, including parent companies when working
with child companies (branches). This provides the correct Odoo
behavior for multi-company scenarios.

This simplification makes the code cleaner and aligns with standard
Odoo patterns for company-dependent fields.
@lef-adhoc
Copy link
Contributor Author

@pedrobaeza What do you think about this PR?

@pedrobaeza pedrobaeza added this to the 19.0 milestone Nov 10, 2025
Copy link

@nicolascol nicolascol left a comment

Choose a reason for hiding this comment

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

LGTM functional review
@pedrobaeza Could you merge please?

Copy link
Contributor

@matiasperalta1 matiasperalta1 left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

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.

5 participants