From b977b8ad48eefe01bb48fd606568299f30187296 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 19 Sep 2017 19:10:32 +0700 Subject: [PATCH] patient.move --- .../actions/clinic_patient_move.xml | 13 ++++ netforce_clinic/layouts/clinic_menu.xml | 1 + .../layouts/clinic_patient_form.xml | 12 ++- .../layouts/clinic_patient_move_form.xml | 8 ++ .../layouts/clinic_patient_move_list.xml | 8 ++ netforce_clinic/models/patient.py | 77 ++++++++++++++++--- netforce_clinic/models/patient_move.py | 38 +++++++-- netforce_clinic/models/staff.py | 3 +- 8 files changed, 139 insertions(+), 21 deletions(-) create mode 100644 netforce_clinic/actions/clinic_patient_move.xml create mode 100644 netforce_clinic/layouts/clinic_patient_move_form.xml create mode 100644 netforce_clinic/layouts/clinic_patient_move_list.xml diff --git a/netforce_clinic/actions/clinic_patient_move.xml b/netforce_clinic/actions/clinic_patient_move.xml new file mode 100644 index 0000000..da016fd --- /dev/null +++ b/netforce_clinic/actions/clinic_patient_move.xml @@ -0,0 +1,13 @@ + + Patient Moves + multi_view + clinic.patient.move + [ + ["All",[]], + ["New",[["state","=","new"]]], + ["Move",[["state","=","move"]]], + ["Dispose",[["state","=","dispose"]]] + ] + list,form + clinic_menu + diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index 875bc87..8b660ae 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -12,6 +12,7 @@ +
diff --git a/netforce_clinic/layouts/clinic_patient_form.xml b/netforce_clinic/layouts/clinic_patient_form.xml index 8a6a94d..3b7c342 100644 --- a/netforce_clinic/layouts/clinic_patient_form.xml +++ b/netforce_clinic/layouts/clinic_patient_form.xml @@ -2,7 +2,8 @@ @@ -113,16 +114,16 @@ - + - + - + @@ -173,4 +174,7 @@ + +