diff --git a/l10n_it_reverse_charge/tests/test_rc.py b/l10n_it_reverse_charge/tests/test_rc.py index cf0eac3a8520..f8f0a537f0e7 100644 --- a/l10n_it_reverse_charge/tests/test_rc.py +++ b/l10n_it_reverse_charge/tests/test_rc.py @@ -96,6 +96,22 @@ def test_intra_EU_cancel_and_draft(self): self.assertEqual(invoice.state, "draft") def test_intra_EU_zero_total(self): + + with self.assertRaises(UserError): + # this is defined in odoo.addons.account.tests.common.AccountTestInvoicingCommon + self.init_invoice( + "in_invoice", + partner=self.supplier_intraEU, + post=True, + amounts=[100, -100], + taxes=self.tax_22ai, + ) + + # disable the rest of the test as it depends on this NOT to fail + return + + # TMP + # pylint: disable=W0101 invoice = self.create_invoice( self.supplier_intraEU, [100, -100], taxes=self.tax_22ai )