diff options
| author | wan <wan@odoo.com> | 2019-03-27 11:34:56 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2019-04-04 12:46:20 +0000 |
| commit | 6940cfddbc69570143e5dc9ddab21d4061b52dbf (patch) | |
| tree | 5cec06cd33213f1b5baa66f854f0bf78ab8fca79 /addons/account_check_printing/tests | |
| parent | 3c2e3b8c5a7d073fe8f0f6d781b1ccdbc320edd0 (diff) | |
[IMP] account: visible but not required bank account on payment
When making a manual payment with account_sepa we want to allow people to add a bank account as it might display the European QR code for banking app, but this should stay optional.
So we made sure that the conditions making the field visible and required weren't the same.
part of task #1918423
closes odoo/odoo#32198
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/account_check_printing/tests')
| -rw-r--r-- | addons/account_check_printing/tests/test_print_check.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/addons/account_check_printing/tests/test_print_check.py b/addons/account_check_printing/tests/test_print_check.py index 8c41e2e6bd6..62957701be4 100644 --- a/addons/account_check_printing/tests/test_print_check.py +++ b/addons/account_check_printing/tests/test_print_check.py @@ -56,7 +56,6 @@ class TestPrintCheck(AccountingTestCase): payment_register.payment_method_id = self.payment_method_check payment = payment_register.save() payment.post() - return payment def test_print_check(self): @@ -80,11 +79,5 @@ class TestPrintCheck(AccountingTestCase): invoices = self.env['account.invoice'] for i in range(0, 3): invoices |= self.create_invoice(is_refund=(i % 3 == 0)) - payment_register = Form(self.env['account.payment.register'].with_context(active_model='account.invoice', active_ids=invoices.ids)) - payment_register.payment_date = time.strftime('%Y') + '-07-15' - payment_register.journal_id = self.bank_journal - payment_register.payment_method_id = self.payment_method_check - domain = payment_register.save().create_payments()['domain'] - payment = self.env['account.payment'].search(domain) - + payment = self.create_payment(invoices) self.assertEqual(all(payment.mapped('check_amount_in_words')), True, 'The amount in words is not set on all the payments') |
