diff --git a/l10n_es_facturae/tests/common.py b/l10n_es_facturae/tests/common.py index e01755423c1..ca66133aa78 100644 --- a/l10n_es_facturae/tests/common.py +++ b/l10n_es_facturae/tests/common.py @@ -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() diff --git a/l10n_es_payment_order_confirming_sabadell/tests/test_payment_order_confirming_sabadell.py b/l10n_es_payment_order_confirming_sabadell/tests/test_payment_order_confirming_sabadell.py index a958b4b33eb..e31f2561f36 100644 --- a/l10n_es_payment_order_confirming_sabadell/tests/test_payment_order_confirming_sabadell.py +++ b/l10n_es_payment_order_confirming_sabadell/tests/test_payment_order_confirming_sabadell.py @@ -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()