diff --git a/htdocs/livraison/class/livraison.class.php b/htdocs/livraison/class/livraison.class.php
index 9910855f463..c612dbf6fe2 100644
--- a/htdocs/livraison/class/livraison.class.php
+++ b/htdocs/livraison/class/livraison.class.php
@@ -59,6 +59,11 @@ class Livraison extends CommonObject
*/
public $table_element_line = "livraisondet";
+ /**
+ * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
+ */
+ public $picto = 'sending';
+
public $brouillon;
public $socid;
public $ref_customer;
@@ -716,7 +721,6 @@ class Livraison extends CommonObject
global $langs;
$result = '';
- $picto = 'sending';
$label = img_picto('', $this->picto).' '.$langs->trans("ShowReceiving").':
';
$label .= ''.$langs->trans("Status").': '.$this->ref;
@@ -735,7 +739,7 @@ class Livraison extends CommonObject
$linkstart = '';
$linkend = '';
- if ($withpicto) $result .= ($linkstart.img_object($label, $picto, 'class="classfortooltip"').$linkend);
+ if ($withpicto) $result .= ($linkstart.img_object($label, $this->picto, 'class="classfortooltip"').$linkend);
if ($withpicto && $withpicto != 2) $result .= ' ';
$result .= $linkstart.$this->ref.$linkend;
return $result;