add event management to batch products
This commit is contained in:
parent
f7c119e48c
commit
445974a003
@ -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);
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user