From aefdda2ae3fc0c684004adb92c33772d4fdb1291 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 7 May 2016 01:39:35 +0200 Subject: [PATCH] PEP8 compliant with the latest version of flake8 --- account_banking_mandate/models/account_banking_mandate.py | 4 ++-- account_payment_order/models/account_move_line.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/account_banking_mandate/models/account_banking_mandate.py b/account_banking_mandate/models/account_banking_mandate.py index b723aa921..08df4799c 100644 --- a/account_banking_mandate/models/account_banking_mandate.py +++ b/account_banking_mandate/models/account_banking_mandate.py @@ -93,8 +93,8 @@ class AccountBankingMandate(models.Model): def create(self, vals=None): if vals.get('unique_mandate_reference', 'New') == 'New': vals['unique_mandate_reference'] = \ - self.env['ir.sequence'].next_by_code('account.banking.mandate')\ - or 'New' + self.env['ir.sequence'].next_by_code( + 'account.banking.mandate') or 'New' return super(AccountBankingMandate, self).create(vals) @api.multi diff --git a/account_payment_order/models/account_move_line.py b/account_payment_order/models/account_move_line.py index 1a7870950..d87b57351 100644 --- a/account_payment_order/models/account_move_line.py +++ b/account_payment_order/models/account_move_line.py @@ -34,8 +34,8 @@ class AccountMoveLine(models.Model): ref2comm_type[self.invoice_id.reference_type] else: if ( - self.invoice_id.type in ('in_invoice', 'in_refund') - and self.invoice_id.reference): + self.invoice_id.type in ('in_invoice', 'in_refund') and + self.invoice_id.reference): communication = self.invoice_id.reference if self.currency_id: currency_id = self.currency_id.id