here is the code I want to change the type of consultation to: -new consultation -followed by consultation
class OeHealthPhysician (osv.osv):
"""New class the oeh.medical.physician"""
_name = "oeh.medical.physician"
_description = "Information about the doctor"
_inherits={
'hr.employee': 'employee_id',
}
CONSULTATION_TYPE = [
('Residential', 'Residential'),
('Visiting', 'Visiting'),
('Other', 'Other'),
]
this is what i have try to do and it doest work
class OeHealthPhysician (osv.osv):
"""New class the oeh.medical.physician"""
_name = "oeh.medical.physician"
_description = "Information about the doctor"
_inherits={
'hr.employee': 'employee_id',
}
CONSULTATION_TYPE = [
('New consultation', 'New consultationl'),
('Followed by consultation', 'Followed by consultation'),
]
You would need to inherit the model and overwrite the selection field with your new selections.