[FIX] runbot_merge: access to self in loop

This is a low issue as the prs of a commit are only listed from the
form so the compute is pretty much always called with a single record,
but still an unforced error which can easily be fixed.
This commit is contained in:
Xavier Morel 2024-06-13 09:35:29 +02:00
parent 2662411b96
commit 9d9cae1d57

View File

@ -1810,7 +1810,7 @@ class Commit(models.Model):
def _compute_prs(self):
for c in self:
c.pull_requests = self.env['runbot_merge.pull_requests'].search([
('head', '=', self.sha),
('head', '=', c.sha),
])