Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dms/models/dms_security_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def _check_access_dms_record(self, operation: str) -> tuple | None:
if any(self._ids) and not self.env.su:
Rule = self.env["ir.rule"]
domain = Rule._compute_domain(self._name, operation)
items = self.search(domain)
items = self.with_context(active_test=False).search(domain)
if any(x_id not in items.ids for x_id in self.ids):
raise Rule._make_access_error(operation, (self - items))

Expand Down
Loading