the parameters to remove_action are wrong, they should be exactly the same parameters that you used in add_action, first should be the hook and then the function name
remove_action('save_post','save_details');
the parameters to remove_action are wrong, they should be exactly the same parameters that you used in add_action, first should be the hook and then the function name
remove_action('save_post','save_details');