Merge pull request #98 from florian-dacosta/7.0-fix-pep8

Fix pep8
This commit is contained in:
Stéphane Bidoul (ACSONE)
2015-02-24 11:57:22 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -254,8 +254,8 @@ class AccountBankStatement(orm.Model):
return False return False
for line in statement.line_ids: for line in statement.line_ids:
if (line.period_id and if (line.period_id and
statement.journal_id.company_id.id statement.journal_id.company_id.id !=
!= line.period_id.company_id.id): line.period_id.company_id.id):
return False return False
return True return True

View File

@@ -108,8 +108,8 @@ class AccountBankStatement(orm.Model):
st_line = st_line_obj.browse(cr, uid, st_line_id, context=context) st_line = st_line_obj.browse(cr, uid, st_line_id, context=context)
st = st_line.statement_id st = st_line.statement_id
context.update({'date': st_line.date}) context.update({'date': st_line.date})
acc_cur = (((st_line.amount <= 0) acc_cur = (((st_line.amount <= 0) and
and st.journal_id.default_debit_account_id) or st.journal_id.default_debit_account_id) or
st_line.account_id) st_line.account_id)
context.update({ context.update({
'res.currency.compute.account': acc_cur, 'res.currency.compute.account': acc_cur,