Skip to content

Commit

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

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

for record in self.filtered(filtered_processador_edoc_mdfe):
date = fields.Datetime.context_timestamp(record, record.document_date)
Expand Down

0 comments on commit 07a7967

Please sign in to comment.