I did it , by using logic hook
1- LOGIC_HOOKS.PHP file
$hook_array[‘process_record’] = Array();
$hook_array[‘process_record’][] = Array(1, ‘hide_editbtn’,‘custom/modules/P_Contrat/hide_editbtn.php’,‘hide_editbtn’,‘hide_editbtn’,);
2- HIDE_EDITBTN.PHP file
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class hide_editbtn {
function hide_editbtn($bean, $event, $arguments)
{
if($bean->statut_ctr_c =="Signed"){
echo $js = "";
}
}
}
?>