Merge pull request #16435 from altairisfr/batchevents_pr

add event management to batch products
This commit is contained in:
Laurent Destailleur 2021-02-26 11:50:48 +01:00 committed by GitHub
commit 34ed5519fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -2122,6 +2122,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