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");
|
$outputlangs->load("products");
|
||||||
|
|
||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'muscadet';
|
$modele = '';
|
||||||
|
|
||||||
if ($this->model_pdf) {
|
if ($this->model_pdf) {
|
||||||
$modele = $this->model_pdf;
|
$modele = $this->model_pdf;
|
||||||
} elseif (!empty($conf->global->COMMANDE_SUPPLIER_ADDON_PDF)) {
|
} elseif (!empty($conf->global->COMMANDE_SUPPLIER_ADDON_PDF)) {
|
||||||
$modele = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF;
|
$modele = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (empty($modele)) {
|
||||||
$modelpath = "core/modules/supplier_order/doc/";
|
return 0;
|
||||||
|
} else {
|
||||||
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams);
|
$modelpath = "core/modules/supplier_order/doc/";
|
||||||
|
return $this->commonGenerateDocument($modelpath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user