mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
In case Model for document generation is not defined, the criteria to select the model is now:
1. Model for the object 2. Custom default module 3. Hardcoded default module
This commit is contained in:
@@ -3641,17 +3641,15 @@ class Commande extends CommonOrder
|
||||
|
||||
$langs->load("orders");
|
||||
|
||||
// Positionne le modele sur le nom du modele a utiliser
|
||||
if (! dol_strlen($modele))
|
||||
{
|
||||
if (! empty($conf->global->COMMANDE_ADDON_PDF))
|
||||
{
|
||||
if (! dol_strlen($modele)) {
|
||||
|
||||
$modele = 'einstein';
|
||||
|
||||
if ($this->modelpdf) {
|
||||
$modele = $this->modelpdf;
|
||||
} elseif (! empty($conf->global->COMMANDE_ADDON_PDF)) {
|
||||
$modele = $conf->global->COMMANDE_ADDON_PDF;
|
||||
}
|
||||
else
|
||||
{
|
||||
$modele = 'einstein';
|
||||
}
|
||||
}
|
||||
|
||||
$modelpath = "core/modules/commande/doc/";
|
||||
|
||||
Reference in New Issue
Block a user