From dd7cfc726779581821e49725d51fdaab5249d919 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Thu, 16 May 2024 18:09:59 +0200 Subject: [PATCH 1/2] [IMP] sql_export : Add last_run datetime field This may be quite usefull to detect osbolete queries not used anymore in order to remove it --- sql_export/models/sql_export.py | 1 + sql_export/views/sql_export_view.xml | 1 + sql_export/wizard/wizard_file.py | 1 + 3 files changed, 3 insertions(+) diff --git a/sql_export/models/sql_export.py b/sql_export/models/sql_export.py index 3b03afa3db..1285db12b2 100644 --- a/sql_export/models/sql_export.py +++ b/sql_export/models/sql_export.py @@ -19,6 +19,7 @@ class SqlExport(models.Model): use_properties = fields.Boolean(compute="_compute_use_properties") query_properties_definition = fields.PropertiesDefinition("Query Properties") + last_run = fields.Datetime() encoding = fields.Selection( [ diff --git a/sql_export/views/sql_export_view.xml b/sql_export/views/sql_export_view.xml index 8965843d10..7d1da59195 100644 --- a/sql_export/views/sql_export_view.xml +++ b/sql_export/views/sql_export_view.xml @@ -72,6 +72,7 @@ primary +