Slection d'un modele de generation de pdf si aucun actif.
This commit is contained in:
parent
5bb0e0ffbe
commit
fad4cfc8f7
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005 Marc Barilley / Océbo <marc@ocebo.com>
|
||||
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -619,6 +619,20 @@ function migrate_modeles($db,$langs,$conf)
|
||||
}
|
||||
}
|
||||
|
||||
if ($conf->expedition->enabled)
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT.'/expedition/mods/pdf/ModelePdfExpedition.class.php');
|
||||
$model=new ModelePDFExpedition();
|
||||
$modellist=$model->liste_modeles($db);
|
||||
if (sizeof($modellist)==0)
|
||||
{
|
||||
// Aucun model par defaut.
|
||||
$sql=" insert into llx_document_model(nom,type) values('rouget','shipping')";
|
||||
$resql = $db->query($sql);
|
||||
if (! $resql) dolibarr_print_error($db);
|
||||
}
|
||||
}
|
||||
|
||||
//print $langs->trans("AlreadyDone");
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user