diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 7adf0068..088a5a5c 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Financial Reports', - 'version': '11.0.2.2.1', + 'version': '11.0.2.2.2', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/report/abstract_report.py b/account_financial_report/report/abstract_report.py index 6f8feee6..4094af1c 100644 --- a/account_financial_report/report/abstract_report.py +++ b/account_financial_report/report/abstract_report.py @@ -15,7 +15,7 @@ class AbstractReport(models.AbstractModel): query = """ DELETE FROM """ + self._table + """ 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) """ self.env.cr.execute(query, ("%s seconds" % seconds,))