to disable the default pdf generation
This commit is contained in:
parent
131ae92cc6
commit
bb08341dc3
@ -3132,18 +3132,19 @@ class CommandeFournisseur extends CommonOrder
|
||||
$outputlangs->load("products");
|
||||
|
||||
if (!dol_strlen($modele)) {
|
||||
$modele = 'muscadet';
|
||||
|
||||
$modele = '';
|
||||
if ($this->model_pdf) {
|
||||
$modele = $this->model_pdf;
|
||||
} elseif (!empty($conf->global->COMMANDE_SUPPLIER_ADDON_PDF)) {
|
||||
$modele = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF;
|
||||
}
|
||||
}
|
||||
|
||||
$modelpath = "core/modules/supplier_order/doc/";
|
||||
|
||||
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams);
|
||||
if (empty($modele)) {
|
||||
return 0;
|
||||
} else {
|
||||
$modelpath = "core/modules/supplier_order/doc/";
|
||||
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user