Skip to content

Commit

Permalink
Merge PR #740 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Feb 20, 2025
2 parents 0cee3a2 + d484928 commit e39a811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product_category_company/models/product_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ class ProductCategory(models.Model):
@api.model
def _search(self, domain, *args, **kwargs):
if "company_id" not in (item[0] for item in domain):
domain += [("company_id", "in", self.env.user.company_ids.ids)]
domain += [("company_id", "in", [False] + self.env.user.company_ids.ids)]
return super()._search(domain, *args, **kwargs)

0 comments on commit e39a811

Please sign in to comment.