[PEP] Should pass Travis checks now.

This commit is contained in:
Ronald Portier (Therp BV)
2015-04-13 00:03:10 +02:00
committed by Stefan Rijnhart
parent eb85bafc44
commit b746ffffd4
3 changed files with 3 additions and 2 deletions

View File

@@ -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(

View File

@@ -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(

View File

@@ -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."""