-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
[16.0] [MIG] l10n_it_fatturapa_in #3000
Conversation
dbd4932
to
e94ccf9
Compare
9e5384d
to
0206c5f
Compare
Alcuni test vengono skippati, perché provocano errori DB che impediscono l'esecuzione di test successivi. |
/ocabot migration l10n_it_fatturapa_in |
0206c5f
to
83027a5
Compare
b47b943
to
69480f3
Compare
|
f45c7ae
to
e6332e7
Compare
6905f00
to
f965f29
Compare
|
bd88242
to
813119a
Compare
f5b69d9
to
23b323c
Compare
4739c21
to
489e97d
Compare
@SirTakobi dovrei aver rivisto tutto. |
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,1926 @@ | |||
# Translation of Odoo Server. |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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), |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
This PR has the |
f5f9646
to
3922943
Compare
Co-authored-by: andreapiovesana <[email protected]> Co-authored-by: Simone Rubino <[email protected]>
3922943
to
615c6dd
Compare
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at e6f683b. Thanks a lot for contributing to OCA. ❤️ |
No description provided.