Feature/assign ce admin
Merge request reports
Activity
requested review from @daniquilez
assigned to @benjami
added 82 commits
-
deef37d0...13fcaae8 - 72 commits from branch
dev
- d1d7cfc4 - First try: Add assign admin wizard
- 9f48d768 - Add admin into communiy energy
- 5668e3d8 - WIP: Added methods into community and user to get admins
- 85fd960d - Fix relation assignment between users and companies
- b5a6f6ac - Added reset password endpoint and method
- b86dc3d5 - WIP: Fix view admins button
- 52c4718e - Fix: reset_password_endpoint and redirect_admin_url
- f85a9bcf - Fix: Admins fields and reset password mail
- ca2872d8 - Add admin type depends on hierarchy level
-
ae7db9c3 - wip
: Add internal user role when creates an admin
Toggle commit list-
deef37d0...13fcaae8 - 72 commits from branch
added 1 commit
- bbe7b923 - Added role in assign admin wizard and move some methods
added 1 commit
-
48a5ef61 - Added make_coord_user and make_ce_user methods in res.user model
-
48a5ef61 - Added make_coord_user and make_ce_user methods in res.user model
added 1 commit
-
2983c3b2 - Tested reate_energy_community_base_user and add_energy_community_role
-
2983c3b2 - Tested reate_energy_community_base_user and add_energy_community_role
added 63 commits
-
2983c3b2...d9f1ce4d - 44 commits from branch
dev
- d9f1ce4d...bc3dc52a - 9 earlier commits
-
905ba0e5 - wip
: Add internal user role when creates an admin - a34699dc - Crear a method to make internal user and some fixes
- 1e1818ad - Added translations
- f62e3b65 - fix required groups to view Assign admin buttton
- 026f8da1 - Added role in assign admin wizard and move some methods
-
2f2ecbee - Added make_coord_user and make_ce_user methods in res.user model
-
4762d105 - Added some tests
-
76b214f2 - Tested reate_energy_community_base_user and add_energy_community_role
- 4abd79af - Added coord roles in assign admin wizard
-
58cdbbfb - Added som tests
Toggle commit list-
2983c3b2...d9f1ce4d - 44 commits from branch
- Resolved by konykon
- Resolved by Benjamí Ramos
128 136 admins_user_ids.append(role_line.user_id.id) 129 137 return any([user in admins_user_ids for user in company_user_ids]) 130 138 139 def _get_admin_role_name(self): 140 if self.hierarchy_level == 'community': 141 return "role_ce_admin" changed this line in version 20 of the diff
- Resolved by Benjamí Ramos
- Resolved by Benjamí Ramos
- Resolved by Benjamí Ramos
- Resolved by Benjamí Ramos
- Resolved by konykon
218 ("active", "=", True), 219 ("role_id.code", "=", "role_internal_user") 220 ]) 221 if not already_user: 222 role = self.env["res.users.role"].sudo().search([( 223 "code", "=", "role_internal_user" 224 )]) 225 self.env["res.users.role.line"].sudo().create({ 226 "user_id": self.id, 227 "active": True, 228 "role_id": role.id, 229 }) 230 231 def make_ce_user(self, company_id, role_name): 232 role = self.env["res.users.role"].sudo().search([( 233 "code", "=", role_name changed this line in version 24 of the diff
Please register or sign in to reply