add event management to batch products

This commit is contained in:
Christophe Battarel 2021-02-25 15:47:14 +01:00
parent f7c119e48c
commit 445974a003
2 changed files with 14 additions and 0 deletions

View File

@ -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);

View File

@ -406,6 +406,15 @@ if (empty($action))
$somethingshown = $formfile->numoffiles;
print '</div>';
// List of actions on element
print '<div class="fichehalfright"><div class="ficheaddleft">';
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formactions.class.php';
$formactions = new FormActions($db);
$somethingshown = $formactions->showactions($object, 'productlot', $socid, 1);
print '</div></div>';
print '</div>';
}
// End of page