Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions l10n_es_facturae/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ def test_bank(self):
with self.assertRaises(exceptions.ValidationError):
self.move_02.validate_facturae_fields()
self.bank.bank_id.bic = "CAIXESBBXXX"
# Ensure that we can edit the bank account for testing purposes,
# even if it's usually not allowed
self.bank.allow_out_payment = False
self.bank.acc_number = "1111"
with self.assertRaises(exceptions.ValidationError):
self.move.validate_facturae_fields()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def test_generate_file_content(self):

def test_payment_file_acc_type_other(self):
order = self._create_payment_order()
# Ensure that we can edit the bank account for testing purposes,
# even if it's usually not allowed
order.company_partner_bank_id.allow_out_payment = False
order.company_partner_bank_id.acc_type = "other"
order.draft2open()
order.open2generated()
Expand Down