[IMP] runbot: make stagings automatically build all

This commit is contained in:
Xavier-Do 2021-08-12 10:47:27 +02:00 committed by Christophe Monniez
parent 2b8e5c5a91
commit eb111002ed

View File

@ -87,6 +87,7 @@ if record.name.startswith('tmp.'):
elif record.name.startswith('staging.'):
name = record.name.replace('staging.', '')
base = record.env['runbot.bundle'].search([('name', '=', name), ('project_id', '=', record.project_id.id), ('is_base', '=', True)], limit=1)
record['build_all'] = True
if base:
record['defined_base_id'] = base
</field>