PEP8 compliant with the latest version of flake8

This commit is contained in:
Alexis de Lattre
2016-05-07 01:39:35 +02:00
parent 777159e19f
commit aefdda2ae3
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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