[FIX] bank_statement_instant_voucher: PEP8

This commit is contained in:
Pedro M. Baeza
2016-02-17 08:47:46 +01:00
parent de5025d857
commit fae53c0450

View File

@@ -195,8 +195,8 @@ class instant_voucher(orm.TransientModel):
counteramount = line.debit - line.credit
else:
amount = abs(instant.statement_line_id.amount)
counteramount = abs(instant.voucher_id
and instant.voucher_id.amount or 0.0)
counteramount = abs(instant.voucher_id and
instant.voucher_id.amount or 0.0)
res[instant.id] = amount - counteramount
return res