diff --git a/l10n_br_nfe/__manifest__.py b/l10n_br_nfe/__manifest__.py index 4cbc4037a85d..5438dcb6d178 100644 --- a/l10n_br_nfe/__manifest__.py +++ b/l10n_br_nfe/__manifest__.py @@ -11,7 +11,7 @@ "maintainers": ["rvalyi", "renatonlima"], "website": "https://github.com/OCA/l10n-brazil", "development_status": "Beta", - "version": "14.0.14.3.1", + "version": "15.0.1.0.0", "depends": [ "l10n_br_fiscal", "l10n_br_fiscal_certificate", diff --git a/l10n_br_nfe/tests/nfe/v4_00/leiauteNFe/NFe35200159594315000157550010000000012062777161.xml b/l10n_br_nfe/tests/nfe/v4_00/leiauteNFe/NFe35200159594315000157550010000000012062777161.xml index 28e2db6e3965..1cdced254938 100644 --- a/l10n_br_nfe/tests/nfe/v4_00/leiauteNFe/NFe35200159594315000157550010000000012062777161.xml +++ b/l10n_br_nfe/tests/nfe/v4_00/leiauteNFe/NFe35200159594315000157550010000000012062777161.xml @@ -1,151 +1,151 @@ - + - - - 35 - 06277716 - Venda - 55 - 1 - 1 - 2020-01-01T12:00:00+01:00 - 2020-01-01T12:00:00+01:00 - 1 - 1 - 3501152 - 1 - 1 - 1 - 2 - 1 - 1 - 0 - 0 - Odoo Brasil OCA v14 - - - 59594315000157 - TESTE - Simples Nacional - TESTE - Simples Nacional - - Rua Paulo Dias - 586 - 3501152 - Alumínio - SP - 18125000 - 1058 - Brasil - 2130109965 - - 755338250133 - 1 - - - 81493979000189 - NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL - - Rua Samuel Morse - 135 - 20º andar - Conjunto 151 - Brooklin - 3550308 - São Paulo - SP - 04576060 - 1058 - Brasil - 551134782150 - - 1 - 460429771334 - cliente1@cliente1.com.br - - - - E-COM11 - SEM GTIN - Cabinet with Doors - 94033000 - 5102 - UN - 1.0000 - 14.0000000000 - 14.00 - SEM GTIN - UN - 1.0000 - 14.0000000000 - 1 - - - - - 0 - 101 - 2.7000 - 0.38 - - - - 999 - - 53 - - - - - 49 - 0.00 - 0.0000 - 0.00 - - - - - 49 - 0.00 - 0.0000 - 0.00 - - - - - - - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 14.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 0.00 - 14.00 - - - - 9 - - - - 0 - 01 - 14.00 - - - - Documento emitido por: Marc Demo - - + + + 35 + 06277716 + Venda + 55 + 1 + 1 + 2020-01-01T12:00:00+01:00 + 2020-01-01T12:00:00+01:00 + 1 + 1 + 3501152 + 1 + 1 + 1 + 2 + 1 + 1 + 0 + 0 + Odoo Brasil OCA v14 + + + 59594315000157 + TESTE - Simples Nacional + TESTE - Simples Nacional + + Rua Paulo Dias + 586 + 3501152 + Alumínio + SP + 18125000 + 1058 + Brasil + 2130109965 + + 755338250133 + 1 + + + 81493979000189 + NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL + + Rua Samuel Morse + 135 + 20º andar - Conjunto 151 + Brooklin + 3550308 + São Paulo + SP + 04576060 + 1058 + Brasil + 551134782150 + + 1 + 460429771334 + cliente1@cliente1.com.br + + + + E-COM11 + SEM GTIN + Cabinet with Doors + 94033000 + 5102 + UN + 1.0000 + 140.0000000000 + 140.00 + SEM GTIN + UN + 1.0000 + 140.0000000000 + 1 + + + + + 0 + 101 + 2.7000 + 3.78 + + + + 999 + + 53 + + + + + 49 + 0.00 + 0.0000 + 0.00 + + + + + 49 + 0.00 + 0.0000 + 0.00 + + + + + + + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 140.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 0.00 + 140.00 + + + + 9 + + + + 0 + 01 + 140.00 + + + + Documento emitido por: Marc Demo + + diff --git a/l10n_br_nfe/tests/test_account_customer_nfe.py b/l10n_br_nfe/tests/test_account_customer_nfe.py index 4348c5cebb04..738948fcac75 100644 --- a/l10n_br_nfe/tests/test_account_customer_nfe.py +++ b/l10n_br_nfe/tests/test_account_customer_nfe.py @@ -3,10 +3,10 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import exceptions -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase -class TestCustomerNFe(SavepointCase): +class TestCustomerNFe(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/l10n_br_nfe/tests/test_nfe_dfe.py b/l10n_br_nfe/tests/test_nfe_dfe.py index b0125b30473c..7026ca4e8fac 100644 --- a/l10n_br_nfe/tests/test_nfe_dfe.py +++ b/l10n_br_nfe/tests/test_nfe_dfe.py @@ -6,7 +6,7 @@ from nfelib.nfe.ws.edoc_legacy import DocumentoElectronicoAdapter -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase from odoo.addons.l10n_br_fiscal_dfe.tests.test_dfe import ( mocked_post_error_status_code, @@ -17,7 +17,7 @@ from ..models.mde import MDe -class TestNFeDFe(SavepointCase): +class TestNFeDFe(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/l10n_br_nfe/tests/test_nfe_import.py b/l10n_br_nfe/tests/test_nfe_import.py index ee8d4b2a0ad5..63e611b91c74 100644 --- a/l10n_br_nfe/tests/test_nfe_import.py +++ b/l10n_br_nfe/tests/test_nfe_import.py @@ -5,14 +5,14 @@ from nfelib.nfe.bindings.v4_0.leiaute_nfe_v4_00 import TnfeProc from odoo.models import NewId -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase from odoo.addons.spec_driven_model import hooks _logger = logging.getLogger(__name__) -class NFeImportTest(SavepointCase): +class NFeImportTest(TransactionCase): def test_import_in_nfe_dry_run(self): hooks.register_hook( self.env, diff --git a/l10n_br_nfe/tests/test_nfe_import_wizard.py b/l10n_br_nfe/tests/test_nfe_import_wizard.py index c84e43ea9c20..c10f4bbbfc47 100644 --- a/l10n_br_nfe/tests/test_nfe_import_wizard.py +++ b/l10n_br_nfe/tests/test_nfe_import_wizard.py @@ -4,14 +4,14 @@ from unittest.mock import MagicMock, patch from odoo.exceptions import UserError -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase from odoo.addons import l10n_br_nfe from ..wizards.import_document import NfeImport -class NFeImportWizardTest(SavepointCase): +class NFeImportWizardTest(TransactionCase): def setUp(self): super(NFeImportWizardTest, self).setUp() diff --git a/l10n_br_nfe/tests/test_nfe_mde.py b/l10n_br_nfe/tests/test_nfe_mde.py index 822873c651a5..d8c7db4f1dc0 100644 --- a/l10n_br_nfe/tests/test_nfe_mde.py +++ b/l10n_br_nfe/tests/test_nfe_mde.py @@ -9,7 +9,7 @@ from nfelib.v4_00 import retEnvEvento from odoo.exceptions import ValidationError -from odoo.tests.common import SavepointCase +from odoo.tests.common import TransactionCase from odoo.addons.l10n_br_fiscal_dfe.tests.test_dfe import mocked_post_success_multiple @@ -97,7 +97,7 @@ def mocked_post_nao_realizada(*args, **kwargs): ) -class TestMDe(SavepointCase): +class TestMDe(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/l10n_br_nfe/tests/test_nfe_structure.py b/l10n_br_nfe/tests/test_nfe_structure.py index 7d4945fd2d44..1ca004c86fec 100644 --- a/l10n_br_nfe/tests/test_nfe_structure.py +++ b/l10n_br_nfe/tests/test_nfe_structure.py @@ -3,7 +3,7 @@ from io import StringIO -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase from odoo.addons.spec_driven_model import hooks from odoo.addons.spec_driven_model.models.spec_models import SpecModel @@ -13,7 +13,7 @@ from ..models.document_related import NFeRelated -class NFeStructure(SavepointCase): +class NFeStructure(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass()