Skip to content

[16.0] [MIG] l10n_it_fatturapa_in#3000

Merged
OCA-git-bot merged 155 commits into
OCA:16.0from
TheMule71:16.0-mig-l10n_it_fatturapa_in
Apr 14, 2023
Merged

[16.0] [MIG] l10n_it_fatturapa_in#3000
OCA-git-bot merged 155 commits into
OCA:16.0from
TheMule71:16.0-mig-l10n_it_fatturapa_in

Conversation

@TheMule71

Copy link
Copy Markdown
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
81 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
Copy Markdown
Contributor Author

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

@primes2h

primes2h commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_it_fatturapa_in

@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch from 0206c5f to 83027a5 Compare November 10, 2022 14:20
@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

TheMule71 commented Dec 8, 2022

Copy link
Copy Markdown
Contributor Author

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

TheMule71 commented Dec 30, 2022

Copy link
Copy Markdown
Contributor Author

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 from bd88242 to 813119a Compare December 30, 2022 21:51
@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch 2 times, most recently from f5b69d9 to 23b323c Compare January 13, 2023 08:56
@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
Copy Markdown
Contributor Author

@SirTakobi dovrei aver rivisto tutto.

@SirTakobi SirTakobi left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

)

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

Copy link
Copy Markdown
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
Copy Markdown
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.
👍

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

<field name="amount_tax" position="after">
<!-- field name="price_subtotal" position="after">
<field
name="efatt_rounding"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

("type_tax_use", "=", "purchase"),
("kind_id.code", "=", Natura),
("amount", "=", 0.0),
("company_id", "=", self.env.company.id),

Copy link
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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 <andrea.m.piovesana@gmail.com>
Co-authored-by: Simone Rubino <sir@takobi.online>
@TheMule71 TheMule71 force-pushed the 16.0-mig-l10n_it_fatturapa_in branch from 3922943 to 615c6dd Compare April 14, 2023 08:24
@tafaRU

tafaRU commented Apr 14, 2023

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
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
Copy Markdown
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.