Fix: Typo invalidates precondition for doctype, resulting in Exception

This commit is contained in:
Armin Gruner
2023-11-23 16:31:45 +01:00
committed by shamoon
parent 92ee4d33c3
commit d2019c240f

View File

@@ -657,7 +657,7 @@ class Consumer(LoggingMixin):
) )
doc_type_name = ( doc_type_name = (
DocumentType.objects.get(pk=self.override_document_type_id).name DocumentType.objects.get(pk=self.override_document_type_id).name
if self.override_correspondent_id is not None if self.override_document_type_id is not None
else None else None
) )
owner_username = ( owner_username = (