reset resign_date in case toggle
parent
d8fcfdb126
commit
f6bb51d46a
|
@ -175,7 +175,6 @@ class Patient(Model):
|
||||||
"vascular_acc": fields.Many2One("clinic.vascular.access","Vascular Ac."),
|
"vascular_acc": fields.Many2One("clinic.vascular.access","Vascular Ac."),
|
||||||
'state': fields.Selection([['admit','Admit'],['dispose','Dispose']],'State'),
|
'state': fields.Selection([['admit','Admit'],['dispose','Dispose']],'State'),
|
||||||
'walkin': fields.Selection([['yes','Yes'],['no','No']],"Walkin"),
|
'walkin': fields.Selection([['yes','Yes'],['no','No']],"Walkin"),
|
||||||
#'department_names': fields.Text("Departments",function="_get_department_names"),
|
|
||||||
'location': fields.Char("Location"), #to filter
|
'location': fields.Char("Location"), #to filter
|
||||||
'cw_time': fields.DateTime("Cycle Updated"),
|
'cw_time': fields.DateTime("Cycle Updated"),
|
||||||
'cw_uid': fields.Many2One("base.user"," Cycle Edit"),
|
'cw_uid': fields.Many2One("base.user"," Cycle Edit"),
|
||||||
|
@ -376,6 +375,7 @@ class Patient(Model):
|
||||||
else:
|
else:
|
||||||
vals['state']='admit'
|
vals['state']='admit'
|
||||||
vals['rm_remain_visit']=False
|
vals['rm_remain_visit']=False
|
||||||
|
vals['resign_date']=None
|
||||||
ctx={}
|
ctx={}
|
||||||
if 'active' in vals.keys():
|
if 'active' in vals.keys():
|
||||||
if not vals['active']:
|
if not vals['active']:
|
||||||
|
|
Loading…
Reference in New Issue