diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index 58d65eea6d3..9af5bd25811 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -723,7 +723,7 @@ if ($id > 0 || ! empty($ref))
{
print '
'.$langs->trans("WarehouseSource").' | ';
print '';
- print $formproduct->selectWarehouses(! empty($commande->warehouse_id)?$commande->warehouse_id:-1,'entrepot_id','',1);
+ print $formproduct->selectWarehouses(! empty($commande->warehouse_id)?$commande->warehouse_id:-1, 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
if (count($formproduct->cache_warehouses) <= 0)
{
print ' '.$langs->trans("WarehouseSourceNotDefined").' '.$langs->trans("AddOne").'';
diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php
index 27b8e6f3ba2..b3fd124b21c 100644
--- a/htdocs/product/class/html.formproduct.class.php
+++ b/htdocs/product/class/html.formproduct.class.php
@@ -137,7 +137,7 @@ class FormProduct
* @param array $events events to add to select2
* @return string HTML select
*/
- function selectWarehouses($selected='',$htmlname='idwarehouse',$filtertype='',$empty=0,$disabled=0,$fk_product=0,$empty_label='', $showstock=0, $forcecombo=0, $events=array())
+ function selectWarehouses($selected='',$htmlname='idwarehouse',$filtertype='',$empty=0,$disabled=0,$fk_product=0,$empty_label='', $showstock=0, $forcecombo=0, $events=array(), $morecss='')
{
global $conf,$langs,$user;
@@ -156,7 +156,7 @@ class FormProduct
$nodatarole=($comboenhancement?' data-role="none"':'');
}
- $out.=' |