Skip to content

Commit

Permalink
Merge PR #2355 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by tafaRU
  • Loading branch information
OCA-git-bot committed Jul 23, 2021
2 parents 3ac38d4 + 0eefd4e commit df4acb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion l10n_it_fatturapa_in/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def e_inv_dati_ritenuta(self):
"invoice_date",
)
def _compute_e_invoice_validation_error(self):
self.ensure_one()
self.e_invoice_validation_error = False
self.e_invoice_validation_message = False

Expand Down
6 changes: 6 additions & 0 deletions l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,12 @@ def test_xml_import_summary_tax_rate(self):
self.assertEqual(invoice.invoice_line_ids[1].price_unit, 3.52)
self.assertEqual(invoice.invoice_line_ids[1].quantity, 1.0)

def test_e_invoice_field_compute(self):
"""Check successful creation of multiple invoices.
See https://github.com/OCA/l10n-italy/issues/2349"""
invoices = self.invoice_model.create([{}, {}])
self.assertEqual(invoices.mapped("e_invoice_validation_error"), [False, False])


class TestFatturaPAEnasarco(FatturapaCommon):
def setUp(self):
Expand Down

0 comments on commit df4acb6

Please sign in to comment.