reset resign_date in case toggle

production
watcha.h 2015-11-13 11:49:13 +07:00
parent d8fcfdb126
commit f6bb51d46a
1 changed files with 1 additions and 1 deletions

View File

@ -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']: