mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: global_state not written in compute
This commit is contained in:
parent
0d29643d52
commit
3e5d5e88a1
@ -362,14 +362,9 @@ class BuildResult(models.Model):
|
||||
build._github_status()
|
||||
|
||||
for init_global_state, build in zip(init_global_states, self):
|
||||
if not build.parent_id and init_global_state not in ('done', 'running') and build.global_state in ('done', 'running'):
|
||||
if init_global_state not in ('done', 'running') and build.global_state in ('done', 'running'):
|
||||
build._github_status()
|
||||
|
||||
if values.get('global_state') in ('done', 'running'):
|
||||
for build in self:
|
||||
if not build.parent_id and build.global_state not in ('done', 'running'):
|
||||
build._github_status()
|
||||
|
||||
return res
|
||||
|
||||
def _add_child(self, param_values, orphan=False, description=False, additionnal_commit_links=False):
|
||||
|
Loading…
Reference in New Issue
Block a user