Browse Source
Merge pull request #465 from onesteinbv/11_fix_account_financial_report
[11.0][FIX] account_financial_report: WHERE clause
pull/474/head
Jordi Ballester Alomar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
account_financial_report/__manifest__.py
-
account_financial_report/report/abstract_report.py
|
@ -4,7 +4,7 @@ |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
{ |
|
|
{ |
|
|
'name': 'Account Financial Reports', |
|
|
'name': 'Account Financial Reports', |
|
|
'version': '11.0.2.2.1', |
|
|
|
|
|
|
|
|
'version': '11.0.2.2.2', |
|
|
'category': 'Reporting', |
|
|
'category': 'Reporting', |
|
|
'summary': 'OCA Financial Reports', |
|
|
'summary': 'OCA Financial Reports', |
|
|
'author': 'Camptocamp SA,' |
|
|
'author': 'Camptocamp SA,' |
|
|
|
@ -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,)) |