diff --git a/modules/account_payment_clearing/tests/scenario_invoice_amount_to_pay.rst b/modules/account_payment_clearing/tests/scenario_invoice_amount_to_pay.rst index d06d8078cd..a9e92af43c 100644 --- a/modules/account_payment_clearing/tests/scenario_invoice_amount_to_pay.rst +++ b/modules/account_payment_clearing/tests/scenario_invoice_amount_to_pay.rst @@ -98,9 +98,9 @@ Create and pay an invoice without clearing:: >>> Payment = Model.get('account.payment') >>> payment, = Payment.find() - >>> payment.click('approve') + >>> payment.click('submit') >>> payment.state - 'approved' + 'submitted' >>> process_payment = Wizard('account.payment.process', [payment]) >>> process_payment.execute('process') >>> payment.reload() @@ -131,9 +131,9 @@ Create an invoice and pay it:: >>> pay_line.execute('next_') >>> payment, = Payment.find([('state', '=', 'draft')]) - >>> payment.click('approve') + >>> payment.click('submit') >>> payment.state - 'approved' + 'submitted' >>> process_payment = Wizard('account.payment.process', [payment]) >>> process_payment.execute('process') >>> payment.reload() diff --git a/modules/account_payment_clearing/tests/test_module.py b/modules/account_payment_clearing/tests/test_module.py index 7eb2045679..7d343f7fcf 100644 --- a/modules/account_payment_clearing/tests/test_module.py +++ b/modules/account_payment_clearing/tests/test_module.py @@ -7,7 +7,7 @@ class AccountPaymentTestCase(ModuleTestCase): 'Test Account Payment module' module = 'account_payment_clearing' - extras = ['account_statement', 'account_statement_rule'] + extras = ['account_statement'] del ModuleTestCase