From 135e4f1768690e9a7f27ae562533a51fd258897e Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 8 Apr 2022 09:50:40 +0200 Subject: [PATCH] Add tooltip to explain the trash action --- htdocs/langs/en_US/mrp.lang | 1 + htdocs/mrp/mo_production.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/langs/en_US/mrp.lang b/htdocs/langs/en_US/mrp.lang index 525c0f4c150..224273d84e6 100644 --- a/htdocs/langs/en_US/mrp.lang +++ b/htdocs/langs/en_US/mrp.lang @@ -70,6 +70,7 @@ ConfirmValidateMo=Are you sure you want to validate this Manufacturing Order? ConfirmProductionDesc=By clicking on '%s', you will validate the consumption and/or production for the quantities set. This will also update the stock and record stock movements. ProductionForRef=Production of %s CancelProductionForRef=Cancellation of product stock decrementation for product %s +TooltipDeleteAndRevertStockMovement=Delete line and revert stock movement AutoCloseMO=Close automatically the Manufacturing Order if quantities to consume and to produce are reached NoStockChangeOnServices=No stock change on services ProductQtyToConsumeByMO=Product quantity still to consume by open MO diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index ba04152bd7d..c9d171a0300 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -915,7 +915,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=deleteline&token='.newToken().'&lineid='.((int) $line->id); print ''; print ''; - print img_picto('', 'delete'); + print img_picto($langs->trans('TooltipDeleteAndRevertStockMovement'), 'delete'); print ''; print ''; } @@ -973,7 +973,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $href = $_SERVER["PHP_SELF"].'?id='.((int) $object->id).'&action=deleteline&token='.newToken().'&lineid='.((int) $line->id).'&fk_movement='.((int) $line2['fk_stock_movement']); print ''; print ''; - print img_picto('', 'delete'); + print img_picto($langs->trans('TooltipDeleteAndRevertStockMovement'), 'delete'); print ''; print ''; } @@ -1226,7 +1226,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $href .= '&lineid='.$line->id; print ''; print ''; - print img_picto('', "delete"); + print img_picto($langs->trans('TooltipDeleteAndRevertStockMovement'), "delete"); print ''; print ''; }