From dab8603d7d838f498a65a9c92d696d3246700ffc Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 29 Nov 2016 23:28:36 +0700 Subject: [PATCH] improve --- netforce_clinic/models/patient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netforce_clinic/models/patient.py b/netforce_clinic/models/patient.py index 02d3038..239b348 100644 --- a/netforce_clinic/models/patient.py +++ b/netforce_clinic/models/patient.py @@ -128,7 +128,7 @@ class Patient(Model): "weight": fields.Float("Weight (kg.)"), "height": fields.Float("Height (cm.)"), "card_type": fields.Selection([("identification","Identification"),("passport","Passport")],"Card Type"), - 'card_no' : fields.Char("ID Card",size=13), + 'card_no' : fields.Char("ID Card",size=13, search=True), 'card_exp' : fields.Date("Card Exp."), "app_no": fields.Char("Application No."), "salary": fields.Selection([["20000","5,001-20,000"],["50000","20,001-50,000"],["100000","50,001-100,000"],["100001","100,000+"]], "Salary"), @@ -168,14 +168,14 @@ class Patient(Model): "documents": fields.One2Many("document","related_id","Documents"), 'resign_date': fields.Date("Dispose Date", search=True), 'rm_remain_visit': fields.Boolean("Auto Remove Remaining Visit"), - 'department_id': fields.Many2One("clinic.department","Department",search=True), + 'department_id': fields.Many2One("clinic.department","Main Department",search=True), 'cycle_id': fields.Many2One("clinic.cycle","Last Cycle",function="_get_last_cycle"), 'branch_id': fields.Many2One("clinic.branch","Branch",search=True), 'cycles': fields.One2Many("clinic.patient.cycle","patient_id", "Cycles"), "vascular_acc": fields.Many2One("clinic.vascular.access","Vascular Ac."), 'state': fields.Selection([['admit','Admit'],['dispose','Dispose']],'State'), 'walkin': fields.Selection([['yes','Yes'],['no','No']],"Walkin"), - 'location': fields.Char("Location"), #to filter + 'location': fields.Char("Share Department"), #to filter 'cw_time': fields.DateTime("Cycle Updated"), 'cw_uid': fields.Many2One("base.user"," Cycle Edit"), }