Merge pull request #16435 from altairisfr/batchevents_pr
add event management to batch products
This commit is contained in:
commit
34ed5519fd
@ -2122,6 +2122,11 @@ function dolGetElementUrl($objectid, $objecttype, $withpicto = 0, $option = '')
|
|||||||
$module = 'mrp';
|
$module = 'mrp';
|
||||||
$myobject = 'mo';
|
$myobject = 'mo';
|
||||||
}
|
}
|
||||||
|
elseif ($objecttype == 'productlot') {
|
||||||
|
$classpath = 'product/stock/class';
|
||||||
|
$module = 'stock';
|
||||||
|
$myobject = 'productlot';
|
||||||
|
}
|
||||||
|
|
||||||
// Generic case for $classfile and $classname
|
// Generic case for $classfile and $classname
|
||||||
$classfile = strtolower($myobject); $classname = ucfirst($myobject);
|
$classfile = strtolower($myobject); $classname = ucfirst($myobject);
|
||||||
|
|||||||
@ -406,6 +406,15 @@ if (empty($action))
|
|||||||
$somethingshown = $formfile->numoffiles;
|
$somethingshown = $formfile->numoffiles;
|
||||||
|
|
||||||
print '</div>';
|
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
|
// End of page
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user