diff --git a/htdocs/product/stock/entrepot.class.php b/htdocs/product/stock/entrepot.class.php index f87b61d06fb..4227b5fd6c9 100644 --- a/htdocs/product/stock/entrepot.class.php +++ b/htdocs/product/stock/entrepot.class.php @@ -175,6 +175,21 @@ class Entrepot $this->cp = $obj->cp; $this->ville = $obj->ville; $this->pays_id = $obj->fk_pays; + + if ($soc->pays_id) + { + $sql = "SELECT libelle from ".MAIN_DB_PREFIX."c_pays where rowid = ".$this->pays_id; + $resql=$db->query($sql); + if ($resql) + { + $obj = $db->fetch_object($resql); + } + else + { + dolibarr_print_error($db); + } + $this->pays=$obj->libelle; + } $this->db->free($result); return 1;