Skip to content

Commit 4d74656

Browse files
committed
[COV] l10n_it_fatturapa_in: Do not depend on previous tests
1 parent acb7371 commit 4d74656

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

l10n_it_fatturapa_in/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ Contributors
213213
- Gianmarco Conte <gconte@dinamicheaziendali.it>
214214
- Marco Colombo <https://github.com/TheMule71>
215215
- Salvo Rapisarda <https://github.com/salvorapi>
216+
- `Aion Tech <https://aiontech.company/>`__:
217+
218+
- Simone Rubino <simone.rubino@aion-tech.it>
216219

217220
Maintainers
218221
-----------

l10n_it_fatturapa_in/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
- Gianmarco Conte \<<gconte@dinamicheaziendali.it>\>
77
- Marco Colombo \<<https://github.com/TheMule71>\>
88
- Salvo Rapisarda \<<https://github.com/salvorapi>\>
9+
- [Aion Tech](https://aiontech.company/):
10+
- Simone Rubino \<<simone.rubino@aion-tech.it>\>

l10n_it_fatturapa_in/static/description/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,10 @@ <h2><a class="toc-backref" href="#toc-entry-8">Contributors</a></h2>
534534
<li>Gianmarco Conte &lt;<a class="reference external" href="mailto:gconte&#64;dinamicheaziendali.it">gconte&#64;dinamicheaziendali.it</a>&gt;</li>
535535
<li>Marco Colombo &lt;<a class="reference external" href="https://github.com/TheMule71">https://github.com/TheMule71</a>&gt;</li>
536536
<li>Salvo Rapisarda &lt;<a class="reference external" href="https://github.com/salvorapi">https://github.com/salvorapi</a>&gt;</li>
537+
<li><a class="reference external" href="https://aiontech.company/">Aion Tech</a>:<ul>
538+
<li>Simone Rubino &lt;<a class="reference external" href="mailto:simone.rubino&#64;aion-tech.it">simone.rubino&#64;aion-tech.it</a>&gt;</li>
539+
</ul>
540+
</li>
537541
</ul>
538542
</div>
539543
<div class="section" id="maintainers">

l10n_it_fatturapa_in/tests/data/IT05979361218_ripilogoiva.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<DatiAnagrafici>
1616
<IdFiscaleIVA>
1717
<IdPaese>IT</IdPaese>
18-
<IdCodice>02780790107</IdCodice>
18+
<IdCodice>39768960237</IdCodice>
1919
</IdFiscaleIVA>
2020
<Anagrafica>
2121
<Denominazione>SOCIETA' ALPHA SRL</Denominazione>

l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2024 Simone Rubino - Aion Tech
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
14
from datetime import date
25

36
from psycopg2 import IntegrityError
@@ -1165,13 +1168,18 @@ def test_01_xml_zero_quantity_line(self):
11651168

11661169
def test_xml_import_summary_tax_rate(self):
11671170
# Invoice with positive total. Detail Level: '1' -- Tax Rate
1168-
# Note: this test depends on test_14_xml_import for supplier creation
1169-
supplier = self.env["res.partner"].search([("vat", "=", "IT02780790107")])[0]
1170-
# in order to make the system create the invoice lines
1171-
supplier.e_invoice_detail_level = "1"
1171+
supplier = self.env["res.partner"].create(
1172+
{
1173+
"name": "SOCIETA' ALPHA SRL",
1174+
"vat": "IT39768960237",
1175+
# in order to make the system create the invoice lines
1176+
"e_invoice_detail_level": "1",
1177+
}
1178+
)
11721179
res = self.run_wizard("test_summary_tax_rate", "IT05979361218_ripilogoiva.xml")
11731180
invoice_id = res.get("domain")[0][2][0]
11741181
invoice = self.invoice_model.browse(invoice_id)
1182+
self.assertEqual(invoice.partner_id, supplier)
11751183
self.assertEqual(invoice.amount_total, 204.16)
11761184
self.assertEqual(len(invoice.invoice_line_ids), 2)
11771185

0 commit comments

Comments
 (0)