The paper deals with the place of codes of ethics within the system of ethical work. In schools in Olomouc district, we analyzed whether they use codes of ethics and how they deal with them. In this region, there are 153 schools and the sample consisted of 80 schools. The research problem was set whether the teaching profession needs its own code of ethics. The advantages of a mandatory code of ethics or a generated code as their own initiative are analyzed here. The research results indicate that the best way is to provide schools a sample code of ethics and let them adapt it to their specific conditions. The research has been mixed, it includes a quantitative research that describes phenomena using variables and qualitative research interpreting the respondents' views on the relation of ethics and professional conduct. The greatest lack a code of ethics was found in secondary vocational schools. Secondary grammar schools usually treated ethical codes. In most European countries, it represents one of the curriculum options in ethical education.