Files
bank-payment/account_payment_order/tests/test_bank.py
Jordi Ballester ee3c27b747 When the user looks for open payables or receivables, in the
context of payment orders, she should ocus on the amount that
is due to be paid. In this method we are forcing to display both
the amount due in company and in the invoice currency.

We then hide the fields debit and credit, because they add no value.
2017-11-15 14:58:18 +01:00

15 lines
404 B
Python

# © 2017 Creu Blanca
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
from odoo.exceptions import ValidationError
class TestBank(TransactionCase):
def test_bank(self):
bank = self.env['res.bank'].search([], limit=1)
self.assertTrue(bank)
with self.assertRaises(ValidationError):
bank.bic = "TEST"