mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: keep log create_date
This commit is contained in:
parent
a80dc25699
commit
d3f998f88c
@ -60,6 +60,14 @@ class runbot_event(models.Model):
|
||||
for ir_logging in fingerprints[build_error.fingerprint]:
|
||||
ir_logging.error_id = build_error.id
|
||||
|
||||
def _prepare_create_values(self, vals_list):
|
||||
# keep the given create date
|
||||
result_vals_list = super()._prepare_create_values(vals_list)
|
||||
for result_vals, vals in zip(result_vals_list, vals_list):
|
||||
if 'create_date' in vals:
|
||||
result_vals['create_date'] = vals['create_date']
|
||||
return result_vals_list
|
||||
|
||||
|
||||
class RunbotErrorLog(models.Model):
|
||||
_name = 'runbot.error.log'
|
||||
|
Loading…
Reference in New Issue
Block a user