[FIX] runbot: fix build error creation form

This commit is contained in:
Christophe Monniez 2020-11-12 11:54:54 +01:00
parent 87512ae78c
commit e51a27bbbb
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class BuildError(models.Model):
def _compute_error_history_ids(self):
for error in self:
fingerprints = [error.fingerprint] + [rec.fingerprint for rec in error.child_ids]
error.error_history_ids = self.search([('fingerprint', 'in', fingerprints), ('active', '=', False), ('id', '!=', error.id)])
error.error_history_ids = self.search([('fingerprint', 'in', fingerprints), ('active', '=', False), ('id', '!=', error.id or False)])
@api.model
def _digest(self, s):

View File

@ -9,7 +9,7 @@
</header>
<sheet>
<group name="build_error_group">
<field name="fingerprint"/>
<field name="fingerprint" readonly="1"/>
<field name="content"/>
<field name="cleaned_content" groups="base.group_no_one"/>
<field name="module_name"/>