Skip to content

Commit

Permalink
Merge PR #3612 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by antoniospneto
  • Loading branch information
OCA-git-bot committed Feb 5, 2025
2 parents ad48b00 + e6f35f0 commit 80d271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_br_nfe/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def _check_product_default_code(self):
@api.constrains("document_date", "document_key", "state_edoc")
def _check_document_date_key(self):
for rec in self:
if rec.document_key:
if rec.document_key and rec.document_date:
key_date_str = rec.document_key[2:6]
key_date = datetime.strptime(key_date_str, "%y%m")

Expand Down

0 comments on commit 80d271f

Please sign in to comment.