From fae53c0450a933bd87a4e48ee443efff6daa5e97 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 17 Feb 2016 08:47:46 +0100 Subject: [PATCH] [FIX] bank_statement_instant_voucher: PEP8 --- .../model/account_voucher_instant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bank_statement_instant_voucher/model/account_voucher_instant.py b/bank_statement_instant_voucher/model/account_voucher_instant.py index 15b6bc55a..d1f3b48a3 100644 --- a/bank_statement_instant_voucher/model/account_voucher_instant.py +++ b/bank_statement_instant_voucher/model/account_voucher_instant.py @@ -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