diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php
index b9fc1a201e5..e8622781a3f 100644
--- a/htdocs/product/stock/product.php
+++ b/htdocs/product/stock/product.php
@@ -734,6 +734,15 @@ if ($id > 0 || $ref) {
$text_stock_options .= (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER) ? '- '.$langs->trans("ReStockOnValidateOrder").'
' : '');
$text_stock_options .= (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) ? '- '.$langs->trans("ReStockOnDispatchOrder").'
' : '');
$text_stock_options .= (!empty($conf->global->STOCK_CALCULATE_ON_RECEPTION) || !empty($conf->global->STOCK_CALCULATE_ON_RECEPTION_CLOSE) ? '- '.$langs->trans("StockOnReception").'
' : '');
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('physicalStockTextStockOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
+ if ($reshook > 0) {
+ $text_stock_options = $hookmanager->resPrint;
+ } elseif ($reshook == 0) {
+ $text_stock_options .= $hookmanager->resPrint;
+ } else {
+ setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
+ }
print '