|
@ -15,7 +15,7 @@ class AbstractReport(models.AbstractModel): |
|
|
query = """ |
|
|
query = """ |
|
|
DELETE FROM """ + self._table + """ |
|
|
DELETE FROM """ + self._table + """ |
|
|
WHERE COALESCE( |
|
|
WHERE COALESCE( |
|
|
write_date, self.create_date, (now() at time zone 'UTC'))::timestamp |
|
|
|
|
|
|
|
|
write_date, create_date, (now() at time zone 'UTC'))::timestamp |
|
|
< ((now() at time zone 'UTC') - interval %s) |
|
|
< ((now() at time zone 'UTC') - interval %s) |
|
|
""" |
|
|
""" |
|
|
self.env.cr.execute(query, ("%s seconds" % seconds,)) |
|
|
self.env.cr.execute(query, ("%s seconds" % seconds,)) |