mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: update hook time as sudo on rebuild request
This commit is contained in:
parent
c7fccf3b56
commit
190f03ab1e
@ -297,6 +297,6 @@ class runbot_branch(models.Model):
|
||||
for branch in self:
|
||||
if not branch.rebuild_requested:
|
||||
branch.rebuild_requested = True
|
||||
branch.repo_id.set_hook_time(time.time())
|
||||
branch.repo_id.sudo().set_hook_time(time.time())
|
||||
else:
|
||||
branch.rebuild_requested = False
|
||||
|
Loading…
Reference in New Issue
Block a user