Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] [MIG] l10n_it_fatturapa_in #3000

Merged
merged 155 commits into from
Apr 14, 2023

Conversation

TheMule71
Copy link
Contributor

No description provided.

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 5 times, most recently from dbd4932 to e94ccf9 Compare November 3, 2022 02:03
@TheMule71 TheMule71 mentioned this pull request Nov 3, 2022
79 tasks
@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 2 times, most recently from 9e5384d to 0206c5f Compare November 3, 2022 23:35
@TheMule71
Copy link
Contributor Author

Alcuni test vengono skippati, perché provocano errori DB che impediscono l'esecuzione di test successivi.

@primes2h
Copy link
Contributor

primes2h commented Nov 8, 2022

/ocabot migration l10n_it_fatturapa_in

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 2 times, most recently from b47b943 to 69480f3 Compare December 6, 2022 23:30
@TheMule71
Copy link
Contributor Author

TheMule71 commented Dec 8, 2022

Promemoria: #3004

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 5 times, most recently from f45c7ae to e6332e7 Compare December 16, 2022 11:56
@TheMule71 TheMule71 marked this pull request as ready for review December 30, 2022 16:47
@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 2 times, most recently from 6905f00 to f965f29 Compare December 30, 2022 19:50
@TheMule71
Copy link
Contributor Author

TheMule71 commented Dec 30, 2022

Include #3111 per far passare i test. Ovviamente, andrebbe mergiata prima quella.

Tengo temporaneamente separato il commit di fix dei test per agevolare la review.

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 8 times, most recently from 4739c21 to 489e97d Compare April 7, 2023 13:29
@TheMule71
Copy link
Contributor Author

@SirTakobi dovrei aver rivisto tutto.

Copy link
Contributor

@SirTakobi SirTakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie mille delle modifiche,
ho solo verificato la storia dei commit e fatto revisione del codice.

Ho messo ancora qualche commento per le questioni in sospeso ma per me non c'è più nulla di bloccante per il merge.

@@ -0,0 +1,36 @@
# Copyright 2015 AgileBG SAGL <http://www.agilebg.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manca 93a6dab, non c'è però una issue per tracciarlo (la PR è #3245).
La modifica è molto semplice, vedi tu se preferisci creare una issue e segnare lì che manca, oppure includere il commit (insieme al commit dei bot che ha causato)

@@ -0,0 +1,1926 @@
# Translation of Odoo Server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mancano le traduzioni aggiunte in 8fed160

self.env["account.account"]
.search(
@classmethod
def setUpClass(cls):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -363,7 +354,7 @@ def test_14_xml_import(self):
self.assertEqual(invoice.payment_reference, "136")
self.assertEqual(invoice.partner_id.name, "SOCIETA' ALPHA SRL")
self.assertEqual(invoice.amount_untaxed, 25.00)
self.assertEqual(invoice.amount_tax, 0.0)
self.assertEqual(invoice.amount_tax, 3.75)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -712,25 +704,24 @@ def test_36_xml_import(self):
)

def test_37_xml_import_dates(self):
self.env.user.lang = "it_IT"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

self.assertTrue(vat_partner_exists())

# XXX changed to false, now it works as intented
self.assertFalse(vat_partner_exists())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Può essere che creando l'attachment tramite Form (com'era prima di questa PR) non serva leggere un campo per scatenare il tutto?
Ad ogni modo, l'importante è che non sia necessario modificare la logica del test.
👍

@@ -1039,15 +1040,23 @@ def test_e_invoice_field_compute(self):
self.assertEqual(invoices.mapped("e_invoice_validation_error"), [False, False])

def test_duplicated_vat_on_partners(self):
supplier = self.env["res.partner"].search(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

<field name="admin_ref" />
</field>
<field name="amount_tax" position="after">
<!-- field name="price_subtotal" position="after">
<field
name="efatt_rounding"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -443,29 +444,29 @@ def get_account_taxes(self, AliquotaIVA, Natura):
("type_tax_use", "=", "purchase"),
("kind_id.code", "=", Natura),
("amount", "=", 0.0),
("company_id", "=", self.env.company.id),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho provato, e le regole di sicurezza non vengono applicate perché i test vengono eseguiti con OdooBot che le bypassa in https://github.com/odoo/odoo/blob/f689c4f53fc4663b17c57bd1d704b9ffb9f11f8d/odoo/models.py#L4418.

Quindi questa aggiunta è necessaria solo nei test, perché normalmente non viene usato OdooBot e le regole vengono applicate.
Ti ho proposto TheMule71#37 per rimuovere questa modifica.

@@ -772,6 +776,8 @@ def _addGlobalDiscount(self, invoice_id, DatiGeneraliDocumento):
line_vals["product_id"] = global_discount_product.id
line_vals["name"] = global_discount_product.name
self.adjust_accounting_data(global_discount_product, line_vals)
elif company.arrotondamenti_tax_id:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avevo capito che qui si sarebbe dovuta rimuovere l'imposta di default, ho aggiunto la modifica in TheMule71#37.

Il commit che attualmente è separato penso sia una nuova funzionalità, se vuoi mantenerla in questa PR servirebbe anche la issue di tracciamento.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch from f5f9646 to 3922943 Compare April 14, 2023 08:18
Co-authored-by: andreapiovesana <[email protected]>
Co-authored-by: Simone Rubino <[email protected]>
@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch from 3922943 to 615c6dd Compare April 14, 2023 08:24
@tafaRU
Copy link
Member

tafaRU commented Apr 14, 2023

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-3000-by-tafaRU-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 04f6b5c into OCA:16.0 Apr 14, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e6f683b. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.