[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. |
SirTakobi
left a comment
There was a problem hiding this comment.
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> | |||
| @@ -0,0 +1,1926 @@ | |||
| # Translation of Odoo Server. | |||
| self.env["account.account"] | ||
| .search( | ||
| @classmethod | ||
| def setUpClass(cls): |
| 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) |
| ) | ||
|
|
||
| def test_37_xml_import_dates(self): | ||
| self.env.user.lang = "it_IT" |
| 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.
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( |
| <field name="amount_tax" position="after"> | ||
| <!-- field name="price_subtotal" position="after"> | ||
| <field | ||
| name="efatt_rounding" |
| ("type_tax_use", "=", "purchase"), | ||
| ("kind_id.code", "=", Natura), | ||
| ("amount", "=", 0.0), | ||
| ("company_id", "=", self.env.company.id), |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 <andrea.m.piovesana@gmail.com> Co-authored-by: Simone Rubino <sir@takobi.online>
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.