mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] bank_statement_instant_voucher: PEP8
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user