Browse Source

[MIG][FIX] contract_payment_auto: Migration to 12.0

pull/448/head
Henrik Norlin 5 years ago
parent
commit
3d7a70c37e
  1. 1
      contract_payment_auto/__manifest__.py
  2. 4
      contract_payment_auto/tests/test_contract.py

1
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).

4
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

Loading…
Cancel
Save