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