diff options
| author | Laurent Smet <las@odoo.com> | 2020-06-30 10:59:11 +0000 |
|---|---|---|
| committer | Benjamin Frantzen (bfr) <bfr@odoo.com> | 2020-07-03 15:53:30 +0000 |
| commit | 20a9cbfda861267540dae97376347877a5adca4b (patch) | |
| tree | 1ce8da6480b5e8a9e9625124b73bed2fed3c8f53 /addons | |
| parent | 52949a1a839e90eae5daf6eac586b939d8e5819b (diff) | |
[FIX] l10n_it_edi: Remove useless test that is testing only one computed field
closes odoo/odoo#54067
X-original-commit: 07b07c7c359a31203fc2e4e4e09b909ad315453a
Related: odoo/enterprise#11653
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/l10n_it_edi/__init__.py | 1 | ||||
| -rw-r--r-- | addons/l10n_it_edi/tests/__init__.py | 2 | ||||
| -rw-r--r-- | addons/l10n_it_edi/tests/test_generate.py | 24 |
3 files changed, 0 insertions, 27 deletions
diff --git a/addons/l10n_it_edi/__init__.py b/addons/l10n_it_edi/__init__.py index 90b17558ffc..dc5e6b693d1 100644 --- a/addons/l10n_it_edi/__init__.py +++ b/addons/l10n_it_edi/__init__.py @@ -2,4 +2,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import models -from . import tests diff --git a/addons/l10n_it_edi/tests/__init__.py b/addons/l10n_it_edi/tests/__init__.py deleted file mode 100644 index d7b285d123c..00000000000 --- a/addons/l10n_it_edi/tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import test_generate diff --git a/addons/l10n_it_edi/tests/test_generate.py b/addons/l10n_it_edi/tests/test_generate.py deleted file mode 100644 index a885ccd46f0..00000000000 --- a/addons/l10n_it_edi/tests/test_generate.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -import time - -from odoo import fields -from odoo.tests.common import TransactionCase, Form - -class TestItalianElectronicInvoice(TransactionCase): - def test_state(self): - f = Form(self.env['account.move'].with_context(default_type='out_invoice')) - f.partner_id = self.env.ref('base.res_partner_12') - with f.invoice_line_ids.new() as l: - l.product_id = self.env.ref('product.product_product_3') - invoice = f.save() - - # I check that Initially customer invoice state is "Draft" - self.assertEqual(invoice.state, 'draft') - - invoice.post() - - # I check that customer invoice state is "Open" - self.assertEqual(invoice.state, 'posted') - - # Electronic invoice must be present and have the same name as l10n_it_einvoice_name - self.assertEqual(invoice.l10n_it_einvoice_id.name, invoice.l10n_it_einvoice_name) |
