mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[12.0] account_financial_tools: Lint fixing
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user