From 16461ae34dcc56fc16c971564aa7283340010d56 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Fri, 27 Feb 2015 23:10:50 +0700 Subject: [PATCH] improve --- .../actions/clinic_staff_rotate.xml | 5 + netforce_clinic/layouts/clinic_menu.xml | 4 +- netforce_clinic/layouts/clinic_staff_form.xml | 26 +-- netforce_clinic/layouts/clinic_staff_list.xml | 6 +- .../layouts/clinic_staff_rotate_form.xml | 17 +- .../layouts/clinic_staff_rotate_list.xml | 10 +- netforce_clinic/models/account_invoice.py | 212 ------------------ netforce_clinic/models/patient.py | 30 +-- .../models/report_discontinue_patient.py | 10 +- .../models/report_hd_case_summary.py | 44 +++- .../models/report_medical_summary.py | 13 +- .../models/report_recent_patient.py | 9 +- netforce_clinic/models/setting.py | 24 +- netforce_clinic/models/staff.py | 2 +- netforce_clinic/models/staff_rotation.py | 33 ++- 15 files changed, 148 insertions(+), 297 deletions(-) diff --git a/netforce_clinic/actions/clinic_staff_rotate.xml b/netforce_clinic/actions/clinic_staff_rotate.xml index d48f8e5..b8bf808 100644 --- a/netforce_clinic/actions/clinic_staff_rotate.xml +++ b/netforce_clinic/actions/clinic_staff_rotate.xml @@ -2,5 +2,10 @@ Staff Rotation multi_view clinic.staff.rotation + [ + ["All",[]], + ["Draft",[["state","=","draft"]]], + ["Approved",[["state","=","approved"]]] + ] clinic_menu diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index db9d926..7a3a21e 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -5,12 +5,10 @@ -
- -
+ diff --git a/netforce_clinic/layouts/clinic_staff_form.xml b/netforce_clinic/layouts/clinic_staff_form.xml index 74db316..ed89d2d 100644 --- a/netforce_clinic/layouts/clinic_staff_form.xml +++ b/netforce_clinic/layouts/clinic_staff_form.xml @@ -12,7 +12,6 @@ - @@ -47,6 +46,7 @@ + @@ -60,18 +60,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/netforce_clinic/layouts/clinic_staff_list.xml b/netforce_clinic/layouts/clinic_staff_list.xml index a3f85d5..e423e63 100644 --- a/netforce_clinic/layouts/clinic_staff_list.xml +++ b/netforce_clinic/layouts/clinic_staff_list.xml @@ -12,7 +12,7 @@ - - - + + + diff --git a/netforce_clinic/layouts/clinic_staff_rotate_form.xml b/netforce_clinic/layouts/clinic_staff_rotate_form.xml index b42972a..b457138 100644 --- a/netforce_clinic/layouts/clinic_staff_rotate_form.xml +++ b/netforce_clinic/layouts/clinic_staff_rotate_form.xml @@ -1,8 +1,14 @@ -
- + + + + + + + - - + @@ -10,4 +16,7 @@ + +