From 1eeff14634359195f7419495c8fd8f39bd380360 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Thu, 14 Nov 2024 09:45:05 -0300 Subject: [PATCH] [RFC][TEMP] l10n_br_cte: remove norma_cte_infos --- l10n_br_cte/models/__init__.py | 3 ++- l10n_br_cte/models/document.py | 6 +++--- l10n_br_cte/models/normal_cte_infos.py | 7 ++++++- l10n_br_cte/security/ir.model.access.csv | 1 - 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/l10n_br_cte/models/__init__.py b/l10n_br_cte/models/__init__.py index e1249dae7504..f27acbb8dd11 100644 --- a/l10n_br_cte/models/__init__.py +++ b/l10n_br_cte/models/__init__.py @@ -12,7 +12,8 @@ from . import document_cargo_quantity_infos 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 a48c87066b00..506415934fdf 100644 --- a/l10n_br_cte/models/document.py +++ b/l10n_br_cte/models/document.py @@ -825,9 +825,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", diff --git a/l10n_br_cte/models/normal_cte_infos.py b/l10n_br_cte/models/normal_cte_infos.py index a01d5049a52a..cabaaffcbef5 100644 --- a/l10n_br_cte/models/normal_cte_infos.py +++ b/l10n_br_cte/models/normal_cte_infos.py @@ -16,7 +16,12 @@ class CTeNormalInfos(spec_models.StackedModel): "odoo.addons.l10n_br_cte_spec.models.v4_0.cte_tipos_basico_v4_00" ) _cte40_stacking_force_paths = "infctenorm.infdoc" - _cte40_stacking_skip_paths = "cte40_docAnt" + _cte40_stacking_skip_paths = ( + "cte40_docAnt", + "cte40_cobr", + "cte40_infCteSub", + "cte40_infGlobalizado", + ) document_id = fields.Many2one(comodel_name="l10n_br_fiscal.document") diff --git a/l10n_br_cte/security/ir.model.access.csv b/l10n_br_cte/security/ir.model.access.csv index a7ed316bbe7a..1ee6536b59b4 100644 --- a/l10n_br_cte/security/ir.model.access.csv +++ b/l10n_br_cte/security/ir.model.access.csv @@ -12,6 +12,5 @@ l10n_br_cte_modal_aquaviario_balsa_user,l10n_br_cte_modal_aquav_balsa_user,model l10n_br_cte_modal_duto_user,l10n_br_cte_modal_duto_user,model_l10n_br_cte_modal_duto,base.group_user,1,1,1,1 -l10n_br_cte_normal_infos_user,l10n_br_cte_normal_infos_user,model_l10n_br_cte_normal_infos,base.group_user,1,1,1,1 l10n_br_cte_cargo_quantity_infos_user,l10n_br_cte_cargo_quantity_infos_user,model_l10n_br_cte_cargo_quantity_infos,base.group_user,1,1,1,1 l10n_br_cte_transported_vehicles_user,l10n_br_cte_transported_vehicles_user,model_l10n_br_cte_transported_vehicles,base.group_user,1,1,1,1