Skip to content
Snippets Groups Projects
Commit 4f226e78 authored by Victor Feyens's avatar Victor Feyens
Browse files

[FIX] base: consider advanced cases for automatic check_company domain.


Those cases are already checked in models._check_company() but not considered
when defining the default domain on `check_company=True` fields.

* Consider res_users relational field
	Companies allowed for user = user.company_ids
* Consider company-dependent fields
	Companies allowed = self.env.company

closes odoo/odoo#40906

X-original-commit: a8de9509
Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent 7d913618
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment