From 92cd3445f0baba864321947c1988ad829b57beb2 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Thu, 14 Nov 2024 10:17:08 -0300 Subject: [PATCH] test1 --- l10n_br_cte/models/__init__.py | 2 +- l10n_br_cte/models/document.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/l10n_br_cte/models/__init__.py b/l10n_br_cte/models/__init__.py index f27acbb8dd11..8ea941c74980 100644 --- a/l10n_br_cte/models/__init__.py +++ b/l10n_br_cte/models/__init__.py @@ -13,7 +13,7 @@ from . import document_supplement from . import document_transported_vehicles -# from . import normal_cte_infos +from . import normal_cte_infos from . import document_comment from . import res_country from . import document_type diff --git a/l10n_br_cte/models/document.py b/l10n_br_cte/models/document.py index 506415934fdf..1ab4047aef87 100644 --- a/l10n_br_cte/models/document.py +++ b/l10n_br_cte/models/document.py @@ -101,6 +101,7 @@ class CTe(spec_models.StackedModel): "cte40_comHora", "cte40_noInter", # "cte40_NFref_ide_id", + "cte40_infCTeNorm", ) # all m2o at this level will be stacked even if not required: @@ -825,9 +826,9 @@ def _export_fields_cte_40_timp(self, xsd_fields, class_obj, export_dict): default="cte40_infCTeNorm", ) - # cte40_infCTeNorm = fields.Many2one( - # comodel_name="l10n_br_cte.normal.infos", - # ) + cte40_infCTeNorm = fields.Many2one( + comodel_name="l10n_br_cte.normal.infos", + ) # cte40_infCTeNorm = fields.Many2one( # comodel_name="l10n_br_cte.normal.infos",