mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: set force_rebuild when creating multi builds
When creating multi builds config steps, the force_build option is often forgotten. In that case, the multi builds are detected as duplicate of the first one. With this commit, when asking for more that one multi build, the force_build is chnaged to to True.
This commit is contained in:
parent
1b2940705d
commit
19b36e4ee6
@ -121,6 +121,13 @@ class ConfigStep(models.Model):
|
||||
if msg:
|
||||
raise ValidationError(msg)
|
||||
|
||||
@api.onchange('number_builds')
|
||||
def _onchange_number_builds(self):
|
||||
if self.number_builds > 1:
|
||||
self.force_build = True
|
||||
else:
|
||||
self.force_build = False
|
||||
|
||||
@api.depends('name', 'custom_db_name')
|
||||
def _compute_db_name(self):
|
||||
for step in self:
|
||||
|
Loading…
Reference in New Issue
Block a user