Debug generation of document for warehouse

This commit is contained in:
Laurent Destailleur
2020-08-18 14:55:56 +02:00
parent 964c4ef0d2
commit 2f18ab0ea9
4 changed files with 3 additions and 8 deletions

View File

@@ -371,9 +371,9 @@ class modStock extends DolibarrModules
$this->remove($options);
//ODT template
$src = DOL_DOCUMENT_ROOT.'/install/doctemplates/stock/template_stock.odt';
$dirodt = DOL_DATA_ROOT.'/doctemplates/stock';
$dest = $dirodt.'/template_stock.odt';
$src = DOL_DOCUMENT_ROOT.'/install/doctemplates/stocks/template_warehouse.odt';
$dirodt = DOL_DATA_ROOT.'/doctemplates/stocks';
$dest = $dirodt.'/template_warehouse.odt';
if (file_exists($src) && !file_exists($dest))
{