[FIX] runbot_merge: v13 computed field compatibility

In v13, computed fields *must* have their value set on all records.
This commit is contained in:
Xavier Morel 2020-01-13 08:45:10 +01:00
parent 08f73ea3d3
commit f91629f693

View File

@ -604,6 +604,7 @@ class PullRequests(models.Model):
for s in self:
c = Commits.search([('sha', '=', s.head)])
if not (c and c.statuses):
s.status = s.statuses = False
continue
statuses = json.loads(c.statuses)