Skip to content

Commit

Permalink
[FIX] l10n_br_mdfe: generate_key
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Oct 19, 2024
1 parent 07f3044 commit 3bbd0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_br_mdfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def _processador(self):
return edoc_mdfe(**params)

def _generate_key(self):
if self.document_type != MODELO_FISCAL_MDFE:
if self.document_type_id.code not in [MODELO_FISCAL_MDFE]:
return super()._generate_key()

for record in self.filtered(filtered_processador_edoc_mdfe):
Expand Down

0 comments on commit 3bbd0a7

Please sign in to comment.