diff --git a/contract_payment_auto/__manifest__.py b/contract_payment_auto/__manifest__.py index 36dce50c..2cc48f99 100644 --- a/contract_payment_auto/__manifest__.py +++ b/contract_payment_auto/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 LasLabs Inc. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/contract_payment_auto/tests/test_contract.py b/contract_payment_auto/tests/test_contract.py index 4d56fcfd..b3211c62 100644 --- a/contract_payment_auto/tests/test_contract.py +++ b/contract_payment_auto/tests/test_contract.py @@ -78,10 +78,10 @@ class TestContract(common.HttpCase): self.assertEqual(len(invoice), 1) self.assertEqual(invoice._name, 'account.invoice') - def _create_invoice(self, open=False, sent=False): + def _create_invoice(self, opened=False, sent=False): self.contract.is_auto_pay = False invoice = self.contract._recurring_create_invoice() - if open or sent: + if opened or sent: invoice.action_invoice_open() if sent: invoice.sent = True