[FIX] runbot: avoid empty string in stored compute

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

View File

@ -701,7 +701,7 @@ class ErrorQualifyRegex(models.Model):
'depends': 'qualifiers',
'compute': f"""
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')