diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php
index 3b560ce1026..717696ac430 100644
--- a/htdocs/delivery/class/delivery.class.php
+++ b/htdocs/delivery/class/delivery.class.php
@@ -720,6 +720,24 @@ class Delivery extends CommonObject
}
}
+ /**
+ * getTooltipContentArray
+ * @param array $params params to construct tooltip data
+ * @since v18
+ * @return array
+ */
+ public function getTooltipContentArray($params)
+ {
+ global $conf, $langs;
+
+ $datas = [];
+
+ $datas['picto'] = img_picto('', $this->picto).' '.$langs->trans("ShowReceiving").':
';
+ $datas['picto'] .= ''.$langs->trans("Status").': '.$this->ref;
+
+ return $datas;
+ }
+
/**
* Return clicable name (with picto eventually)
*
@@ -750,8 +768,16 @@ class Delivery extends CommonObject
}
//}
-
- $linkstart = '';
+ if (getDolGlobalInt('MAIN_ENABLE_AJAX_TOOLTIP')) {
+ $params = [
+ 'id' => $this->id,
+ 'objecttype' => $this->element,
+ ];
+ $linkstart = '';
+ }
$linkend = '';
if ($withpicto) {