I want to display fields related to education so that employees can see each other in the personal information. Here's how I do it
/hr_employee_public.py
certificate = fields.Selection([
('graduate', 'Graduate'),
('bachelor', 'Bachelor'),
('master', 'Master'),
('doctor', 'Doctor'),
('other', 'Other'),
], 'Certificate Level', readonly=True)
study_field = fields.Char("Field of Study", readonly=True)
study_school = fields.Char("School", readonly=True)
/hr_employee_public_views.xml
name="personal_information" string="Private Information" groups="hr.group_hr_user">
string="Education">
name="certificate" readonly="1" string="Certificate"/>
name="study_field" readonly="1" string/="Study Field">
name="study_school" reaconly="1" string="Study School"/>
I have added 3 fields certificate, study_field, study_school to the View in the DB
Can anyone help me?