diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index fcac069183e..1f42300bd3b 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1829,6 +1829,11 @@ function dolGetElementUrl($objectid, $objecttype, $withpicto = 0, $option = '') $module = 'mrp'; $myobject = 'mo'; } + elseif ($objecttype == 'productlot') { + $classpath = 'product/stock/class'; + $module = 'stock'; + $myobject = 'productlot'; + } // Generic case for $classfile and $classname $classfile = strtolower($myobject); $classname = ucfirst($myobject); diff --git a/htdocs/product/stock/productlot_card.php b/htdocs/product/stock/productlot_card.php index 8601ce25ebc..64902b02e86 100644 --- a/htdocs/product/stock/productlot_card.php +++ b/htdocs/product/stock/productlot_card.php @@ -406,6 +406,15 @@ if (empty($action)) $somethingshown = $formfile->numoffiles; print ''; + + // List of actions on element + print '