mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot_merge: remove team when disabling user
This commit is contained in:
parent
1097c5f19e
commit
25cfaa95a5
@ -155,10 +155,11 @@ class MergebotReviewerProvisioning(Controller):
|
||||
'/runbot_merge/disable_users',
|
||||
'/runbot_merge/remove_reviewers', # deprecated URL
|
||||
], type='json', auth='public', methods=['POST'])
|
||||
def remove_users(self, github_logins, **kwargs):
|
||||
def disable_users(self, github_logins, **kwargs):
|
||||
partners = request.env['res.partner'].sudo().search([('github_login', 'in', github_logins)])
|
||||
partners.write({
|
||||
'email': False,
|
||||
'parent_id': False,
|
||||
'review_rights': [Command.clear()],
|
||||
'delegate_reviewer': [Command.clear()],
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user