[FIX] runbot: avoid empty string in stored compute

This commit is contained in:
Christophe Monniez 2024-12-10 09:27:25 +01:00 committed by xdo
parent 2e107111f0
commit f74391fc13

View File

@ -701,7 +701,7 @@ class ErrorQualifyRegex(models.Model):
'depends': 'qualifiers', 'depends': 'qualifiers',
'compute': f""" 'compute': f"""
for error_content in self: for error_content in self:
error_content['x_{field}'] = error_content.qualifiers.get('{field}', '')""", error_content['x_{field}'] = error_content.qualifiers.get('{field}', False)""",
}) })
@api.constrains('regex') @api.constrains('regex')