@@ -287,7 +287,7 @@ class Document extends ActiveRecordCommon | |||
{ | |||
$filenameComplete = $this->getFilenameComplete(); | |||
if (!file_exists($filenameComplete)) { | |||
if (!file_exists($filenameComplete) || $this->isStatusDraft()) { | |||
$this->generatePdf(Pdf::DEST_FILE); | |||
} | |||