mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[PEP] Should pass Travis checks now.
This commit is contained in:
committed by
Stefan Rijnhart
parent
eb85bafc44
commit
b746ffffd4
@@ -33,7 +33,7 @@ class AccountBankStatement(orm.Model):
|
||||
cr, uid, st_line, st_line_number, context=context)
|
||||
context = context or {}
|
||||
if (('override_period_from_date' in context or
|
||||
'period_id' not in res) and 'date' in res):
|
||||
'period_id' not in res) and 'date' in res):
|
||||
period_model = self.pool['account.period']
|
||||
search_date = 'date' in res and res['date'] or None
|
||||
period_ids = period_model.find(
|
||||
|
||||
@@ -30,7 +30,7 @@ class AccountMoveLine(orm.Model):
|
||||
"""If requested, override period from date."""
|
||||
context = context or {}
|
||||
if (('override_period_from_date' in context or
|
||||
'period_id' not in vals) and 'date' in vals):
|
||||
'period_id' not in vals) and 'date' in vals):
|
||||
period_model = self.pool['account.period']
|
||||
search_date = 'date' in vals and vals['date'] or None
|
||||
period_ids = period_model.find(
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
from openerp.tests.common import TransactionCase
|
||||
import time
|
||||
|
||||
|
||||
class TestReconciliation(TransactionCase):
|
||||
"""Tests to make sure that transactions take period from statement line."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user