mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot: allow same version in min max tags
This commit is contained in:
parent
669f2be60c
commit
52a7b01433
@ -125,7 +125,7 @@ class BuildError(models.Model):
|
|||||||
@api.constrains('tags_min_version_id', 'tags_max_version_id')
|
@api.constrains('tags_min_version_id', 'tags_max_version_id')
|
||||||
def _check_min_max_version(self):
|
def _check_min_max_version(self):
|
||||||
for build_error in self:
|
for build_error in self:
|
||||||
if build_error.tags_min_version_id and build_error.tags_max_version_id and build_error.tags_min_version_id.number >= build_error.tags_max_version_id.number:
|
if build_error.tags_min_version_id and build_error.tags_max_version_id and build_error.tags_min_version_id.number > build_error.tags_max_version_id.number:
|
||||||
raise ValidationError('Tags Min version should be lower than Tags Max version')
|
raise ValidationError('Tags Min version should be lower than Tags Max version')
|
||||||
|
|
||||||
def _inverse_tags_min_version_id(self):
|
def _inverse_tags_min_version_id(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user