mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot_merge: v13 computed field compatibility
In v13, computed fields *must* have their value set on all records.
This commit is contained in:
parent
08f73ea3d3
commit
f91629f693
@ -604,6 +604,7 @@ class PullRequests(models.Model):
|
|||||||
for s in self:
|
for s in self:
|
||||||
c = Commits.search([('sha', '=', s.head)])
|
c = Commits.search([('sha', '=', s.head)])
|
||||||
if not (c and c.statuses):
|
if not (c and c.statuses):
|
||||||
|
s.status = s.statuses = False
|
||||||
continue
|
continue
|
||||||
|
|
||||||
statuses = json.loads(c.statuses)
|
statuses = json.loads(c.statuses)
|
||||||
|
Loading…
Reference in New Issue
Block a user