[12.0] account_financial_tools: Lint fixing

This commit is contained in:
hveficent
2020-01-20 10:41:00 +01:00
committed by ps-tubtim
parent 916a1488de
commit 17fd85ad22

View File

@@ -119,15 +119,15 @@ class TestPayment(AccountingTestCase):
})
self.bank_journal.bank_account_id = self.partner_bank_id.id
def create_invoice(self, amount=100, type='out_invoice', currency_id=None):
def create_invoice(self, amount=100, inv_type='out_invoice', currency_id=None):
""" Returns an open invoice """
invoice = self.invoice_model.create({
'partner_id': self.partner_agrolait.id,
'currency_id': currency_id,
'name': type == 'out_invoice' and
'name': inv_type == 'out_invoice' and
'invoice to client' or 'invoice to supplier',
'account_id': self.account_receivable.id,
'type': type,
'type': inv_type,
'date_invoice': time.strftime('%Y-%m-%d'),
})
self.invoice_line_model.create({