[14.0][FIX] l10n_br_mdfe: fix fields and methods names #3498
+32
−30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes changes to the
l10n_br_mdfe/models/document.py
file to standardize the naming convention for modal fields and methods. The changes mainly involve renaming identifiers to use a consistentmdfe_modal_*
prefix.Standardization of modal field and method names:
Renamed modal field identifiers to use the
mdfe_modal_*
prefix:modal_aereo_id
tomdfe_modal_aereo_id
modal_aquaviario_id
tomdfe_modal_aquaviario_id
modal_ferroviario_id
tomdfe_modal_ferroviario_id
modal_rodoviario_id
tomdfe_modal_rodoviario_id
Updated method names to align with the new field naming convention:
_export_modal_aereo
to_export_mdfe_modal_aereo
_export_modal_ferroviario
to_export_mdfe_modal_ferroviario
_export_modal_aquaviario
to_export_mdfe_modal_aquaviario
_export_modal_rodoviario
to_export_mdfe_modal_rodoviario
Adjusted the method
_get_modal_to_build
to_get_mdfe_modal_to_build
and updated its usage:_build_attr
method [1] [2]