Skip to content

Commit

Permalink
[IMP] group domain
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Jul 27, 2023
1 parent d25d557 commit 6114185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web_field_required_invisible_manager/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def fields_view_get(
)
if not filtered_rec_id:
continue
if len(r.group_ids) and not (r.group_ids & self.env.user.groups_id):
continue

Check warning on line 72 in web_field_required_invisible_manager/models/models.py

View check run for this annotation

Codecov / codecov/patch

web_field_required_invisible_manager/models/models.py#L72

Added line #L72 was not covered by tests
if r.required:
node.set("required", "1")
modifiers = simplejson.loads(node.get("modifiers"))
Expand Down

0 comments on commit 6114185

Please sign in to comment.