From d1a20b8631f8d0bde3768e11a53309154b74fd58 Mon Sep 17 00:00:00 2001 From: Marcel Savegnago Date: Thu, 5 Dec 2024 11:23:02 -0300 Subject: [PATCH] [WIP][IMP] l10n_br_mdfe: fixes --- l10n_br_mdfe/models/modal_rodoviario.py | 3 ++- l10n_br_mdfe/views/document.xml | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/l10n_br_mdfe/models/modal_rodoviario.py b/l10n_br_mdfe/models/modal_rodoviario.py index 58f32abee43d..7dbed078a4d1 100644 --- a/l10n_br_mdfe/models/modal_rodoviario.py +++ b/l10n_br_mdfe/models/modal_rodoviario.py @@ -18,7 +18,8 @@ class MDFeModalRodoviario(spec_models.StackedModel): _mdfe30_binding_module = "nfelib.mdfe.bindings.v3_0.mdfe_modal_rodoviario_v3_00" _mdfe30_stacking_mixin = "mdfe.30.rodo" # all m2o at this level will be stacked even if not required: - _mdfe30_stacking_force_paths = ["rodo.infANTT", "rodo.infANTT.ValePed"] + _mdfe30_stacking_force_paths = ["rodo.infANTT", "rodo.infANTT.InfContratante"] + _mdfe30_stacking_skip_paths = ("mdfe30_valePed",) document_id = fields.Many2one(comodel_name="l10n_br_fiscal.document") diff --git a/l10n_br_mdfe/views/document.xml b/l10n_br_mdfe/views/document.xml index 8bed6d23ad05..9720aaeeb2ff 100644 --- a/l10n_br_mdfe/views/document.xml +++ b/l10n_br_mdfe/views/document.xml @@ -66,7 +66,7 @@ >{'invisible': [('document_type', 'in', ['58'])]} - + + + + + + + @@ -178,7 +192,6 @@ > -