14 lines
484 B
Python
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') |