[FIX] runbot: fix codowner match

This commit is contained in:
Xavier-Do 2022-02-07 12:58:58 +01:00
parent 2c29a6b94b
commit ea5feb114a

View File

@ -28,7 +28,7 @@ class Codeowner(models.Model):
def _validate_version_domain(self):
for rec in self:
try:
self._match_version(runbot.bundle_master.version_id)
self._match_version(self.env.ref('runbot.bundle_master').version_id)
except Exception as e:
raise ValidationError("Unable to validate version_domain: %s" % e)