mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[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:
parent
2662411b96
commit
9d9cae1d57
@ -1810,7 +1810,7 @@ class Commit(models.Model):
|
|||||||
def _compute_prs(self):
|
def _compute_prs(self):
|
||||||
for c in self:
|
for c in self:
|
||||||
c.pull_requests = self.env['runbot_merge.pull_requests'].search([
|
c.pull_requests = self.env['runbot_merge.pull_requests'].search([
|
||||||
('head', '=', self.sha),
|
('head', '=', c.sha),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user