[IMP] runbot: add dl link for python steps

This commit is contained in:
Xavier-Do 2023-06-02 16:17:39 +02:00
parent 368275b08b
commit f6f88a9e04

View File

@ -860,7 +860,7 @@ class ConfigStep(models.Model):
return
kwargs = dict(message='Step %s finished in %s' % (self.name, s2human(build.job_time)))
if self.job_type == 'install_odoo':
if self.job_type == 'install_odoo' or (self.job_type == 'python' and '_run_install_odoo' in self.python_code):
kwargs['message'] += ' $$fa-download$$'
db_suffix = build.params_id.config_data.get('db_name') or (build.params_id.dump_db.db_suffix if not self.create_db else False) or self.db_name
kwargs['path'] = '%s%s-%s.zip' % (build.http_log_url(), build.dest, db_suffix)