[MIG] account_financial_report: Migration to 12.0
[IMP] Reformated one query to avoid one sql injection warning message - but no sql injection was possible here
This commit is contained in:
committed by
chaule97
parent
3de3a119e5
commit
9f9211b6ea
@@ -3,7 +3,7 @@
|
||||
|
||||
import time
|
||||
|
||||
from datetime import datetime
|
||||
from datetime import datetime, date
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from odoo.fields import Date
|
||||
@@ -34,8 +34,8 @@ class TestJournalLedger(a_t_f_c.AbstractTestForeignCurrency):
|
||||
|
||||
def _getBaseFilters(self):
|
||||
return {
|
||||
'date_from': time.strftime('%Y-01-01'),
|
||||
'date_to': time.strftime('%Y-12-31'),
|
||||
'date_from': date(date.today().year, 1, 1),
|
||||
'date_to': date(date.today().year, 12, 31),
|
||||
'company_id': self.company.id,
|
||||
'journal_ids': [(6, 0, self.journal_sale.ids)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user