from odoo import models, fields
class patient_information(models.Model):
_name = "hospital.patient"
_description = "patient_information_Table"
name = fields.char(String="Patient_Name")
age = fields.char(string="Patient_age")
gender = fields.selection([('male', 'Male'), ('female', 'Female')], string="Gender")
i write the above code when i hove on char it pop up in pycharm that char function not in fields class.Also when i save and restart the service it give me an error of 500.
i need your kind suggestions regarding this issue. Thanks in advance.