diff --git a/netforce_clinic/actions/clinic_doctor.xml b/netforce_clinic/actions/clinic_doctor.xml index 5eb4df5..886895a 100644 --- a/netforce_clinic/actions/clinic_doctor.xml +++ b/netforce_clinic/actions/clinic_doctor.xml @@ -2,7 +2,7 @@ Doctors multi_view clinic.doctor - [["All",[]],["Temporaly",[["type","=","temporary"]]],["Permanent",[["type","=","permanent"]]]] + [["All",[]],["Archived",[["active","=",false]]],["Temporaly",[["type","=","temporary"]]],["Permanent",[["type","=","permanent"]]]] list,page,form clinic_menu diff --git a/netforce_clinic/actions/clinic_nurse.xml b/netforce_clinic/actions/clinic_nurse.xml index b117fe9..55cfe20 100644 --- a/netforce_clinic/actions/clinic_nurse.xml +++ b/netforce_clinic/actions/clinic_nurse.xml @@ -2,7 +2,7 @@ Nurses multi_view clinic.nurse - [["All",[]],["Temporaly",[["type","=","temporary"]]],["Permanent",[["type","=","permanent"]]]] + [["All",[]],["Archived",[["active","=",false]]],["Temporaly",[["type","=","temporary"]]],["Permanent",[["type","=","permanent"]]]] list,page,form clinic_menu diff --git a/netforce_clinic/layouts/clinic_doctor_form.xml b/netforce_clinic/layouts/clinic_doctor_form.xml index b632921..22b2bc9 100644 --- a/netforce_clinic/layouts/clinic_doctor_form.xml +++ b/netforce_clinic/layouts/clinic_doctor_form.xml @@ -23,6 +23,7 @@ + diff --git a/netforce_clinic/layouts/clinic_nurse_form.xml b/netforce_clinic/layouts/clinic_nurse_form.xml index e7c3ef8..555b668 100644 --- a/netforce_clinic/layouts/clinic_nurse_form.xml +++ b/netforce_clinic/layouts/clinic_nurse_form.xml @@ -23,6 +23,7 @@ + diff --git a/netforce_clinic/models/doctor.py b/netforce_clinic/models/doctor.py index 3b1a488..e8663e6 100644 --- a/netforce_clinic/models/doctor.py +++ b/netforce_clinic/models/doctor.py @@ -45,6 +45,7 @@ class Doctor(Model): 'picture': fields.File("Picture"), 'note': fields.Text("Note"), 'categ_id': fields.Many2One("clinic.personal.categ", "Doctor Category", domain=[['type','=','doctor']]), + 'active': fields.Boolean("Active"), } diff --git a/netforce_clinic/models/nurse.py b/netforce_clinic/models/nurse.py index 63fcd8e..def9c37 100644 --- a/netforce_clinic/models/nurse.py +++ b/netforce_clinic/models/nurse.py @@ -45,6 +45,7 @@ class Nurse(Model): 'picture': fields.File("Picture"), 'note': fields.Text("Note"), 'categ_id': fields.Many2One("clinic.personal.categ", "Nurse Category", domain=[['type','=','nurse']]), + 'active': fields.Boolean("Active"), } def _get_number(self,context={}):