Merge pull request #18750 from maksimstojkovic/develop

Fix Warehouse PDF Generation Error
This commit is contained in:
Laurent Destailleur 2021-09-18 16:08:16 +02:00 committed by GitHub
commit 061cbc4266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -208,8 +208,6 @@ class pdf_standard extends ModelePDFStock
// Load traductions files required by page
$outputlangs->loadLangs(array("main", "dict", "companies", "bills", "stocks", "orders", "deliveries"));
$nblines = count($object->lines);
if ($conf->stock->dir_output) {
// Definition of $dir and $file
if ($object->specimen) {