diff --git a/netforce_clinic/models/patient.py b/netforce_clinic/models/patient.py index cb1730b..643cf89 100644 --- a/netforce_clinic/models/patient.py +++ b/netforce_clinic/models/patient.py @@ -175,7 +175,6 @@ class Patient(Model): "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"), - #'department_names': fields.Text("Departments",function="_get_department_names"), 'location': fields.Char("Location"), #to filter 'cw_time': fields.DateTime("Cycle Updated"), 'cw_uid': fields.Many2One("base.user"," Cycle Edit"), @@ -376,6 +375,7 @@ class Patient(Model): else: vals['state']='admit' vals['rm_remain_visit']=False + vals['resign_date']=None ctx={} if 'active' in vals.keys(): if not vals['active']: