[IMP] mail : change the model with model_id when ever it is used in function.