Skip to content
Snippets Groups Projects
Commit 89abdb18 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #100 from simnandez/develop

[ task #176 ] Allow to use ODT templates. Works with Orders
parents 82db98ee 1f0c04a8
No related branches found
No related tags found
No related merge requests found
......@@ -200,6 +200,12 @@ class modCommande extends DolibarrModules
// Permissions
$this->remove();
//ODT template
require_once(DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php');
$dirodt=DOL_DATA_ROOT.'/doctemplates/orders';
create_exdir($dirodt);
dol_copy(DOL_DOCUMENT_ROOT.'/install/doctemplates/orders/template_order.odt',$dirodt.'/template_order.odt',0,0);
$sql = array(
"DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][2]."'",
"INSERT INTO ".MAIN_DB_PREFIX."document_model (nom,type) VALUES('".$this->const[0][2]."','order')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment