Files
2025-03-22 09:11:09 +07:00

14 lines
484 B
Python

from odoo import models, fields, api
class ClinicPatient(models.Model):
_name = 'clinic.patient'
_description = 'Bệnh nhân'
name = fields.Char(string='Tên bệnh nhân', required=True)
dob = fields.Date(string='Ngày sinh')
gender = fields.Selection([
('male', 'Male'),
('female', 'Female')
], string='Giới tính')
phone = fields.Char(string='Số điện thoại')
medical_history = fields.Text(string='Lịch sử bệnh án')