Skip to content

Commit 9d99382

Browse files
Merge pull request #675 from ShwetaSerpentCS/imp_scs_hide_menu_user_wise
[IMP] [18.0] scs_hide_menu_user_wise: improved module name
2 parents 11f2547 + 2cf179d commit 9d99382

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4
-2
lines changed
File renamed without changes.

hide_menu_user_wise/models/res_users.py renamed to scs_hide_menu_user_wise/models/res_users.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class ResUsers(models.Model):
88
"""
99

1010
_inherit = "res.users"
11+
1112

1213
def write(self, vals):
1314
"""
@@ -28,7 +29,8 @@ def write(self, vals):
2829
menu.write({"restrict_user_ids": [fields.Command.unlink(user.id)]})
2930
return res
3031

31-
def _get_is_admin(self):
32+
33+
def _compute_get_is_admin(self):
3234
"""
3335
Compute method to determine if the user is an admin.
3436
The admin user will have the Hide specific menu tab hidden on their form.
@@ -45,7 +47,7 @@ def _get_is_admin(self):
4547
help="Select menu items to be hidden for this user.",
4648
)
4749
is_admin = fields.Boolean(
48-
compute=_get_is_admin,
50+
compute="_compute_get_is_admin",
4951
help="Indicates whether the user is an admin.",
5052
)
5153

File renamed without changes.

hide_menu_user_wise/static/description/banner_hide_menu_user_wise.jpg renamed to scs_hide_menu_user_wise/static/description/banner_hide_menu_user_wise.jpg

File renamed without changes.

hide_menu_user_wise/static/description/hide_menu_user_wise_21.png renamed to scs_hide_menu_user_wise/static/description/hide_menu_user_wise_21.png

File renamed without changes.

hide_menu_user_wise/static/description/hide_menu_user_wise_22.png renamed to scs_hide_menu_user_wise/static/description/hide_menu_user_wise_22.png

File renamed without changes.

hide_menu_user_wise/static/description/hide_menu_user_wise_23.png renamed to scs_hide_menu_user_wise/static/description/hide_menu_user_wise_23.png

File renamed without changes.

0 commit comments

Comments
 (0)