Skip to content

Commit

Permalink
Update res_users.py
Browse files Browse the repository at this point in the history
Just testing how it works without hack
  • Loading branch information
em230418 authored Oct 25, 2024
1 parent b61f1e3 commit 21934b4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pos_user_restriction/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,3 @@ def has_group(self, group_ext_id):
res = super().has_group(group_ext_id)
return res

# HACK: To clear cache called from res.users write method
@api.model
@ormcache("self._uid", "group_ext_id")
def _has_group(self, group_ext_id):
return super()._has_group(group_ext_id)

has_group.clear_cache = _has_group.clear_cache

0 comments on commit 21934b4

Please sign in to comment.