From e9e0258444265bd7422f054fd6fee6a8a269d97c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Sep 2021 16:14:42 +0200 Subject: [PATCH] Update mo_production.php --- htdocs/mrp/mo_production.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index c2a69651868..75be12ffc39 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -726,12 +726,14 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print $langs->trans("Warehouse"); } print ''; - // Available - print ''; - if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { - print $langs->trans("Available"); + if ($conf->productbatch->enabled) { + // Available + print ''; + if ($collapse || in_array($action, array('consumeorproduce', 'consumeandproduceall'))) { + print $langs->trans("Available"); + } + print ''; } - print ''; // Lot - serial if ($conf->productbatch->enabled) { print '';