From 16fdf098e0b47ad4c09b4b7180b5ea1e60c71306 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Sun, 2 Nov 2014 00:30:48 +0700 Subject: [PATCH] visit --- netforce_clinic/actions/clinic_cycle_item.xml | 1 + .../actions/clinic_visit_widget.xml | 7 ++++++ netforce_clinic/layouts/clinic_board.xml | 8 +++--- .../layouts/clinic_gen_visit_form.xml | 3 ++- .../layouts/clinic_patient_list.xml | 1 + netforce_clinic/layouts/clinic_visit_form.xml | 3 ++- netforce_clinic/layouts/clinic_visit_list.xml | 4 +-- .../layouts/clinic_visit_widget.xml | 7 ++++++ netforce_clinic/models/cycle_item.py | 2 ++ netforce_clinic/models/gen_visit.py | 13 ++++++++-- netforce_clinic/models/patient.py | 2 +- netforce_clinic/models/schedule.py | 4 +-- netforce_clinic/models/visit.py | 25 +++++++++++++++---- netforce_clinic/todo.txt | 3 +++ 14 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 netforce_clinic/actions/clinic_visit_widget.xml create mode 100644 netforce_clinic/layouts/clinic_visit_widget.xml diff --git a/netforce_clinic/actions/clinic_cycle_item.xml b/netforce_clinic/actions/clinic_cycle_item.xml index 09c4581..821c85b 100644 --- a/netforce_clinic/actions/clinic_cycle_item.xml +++ b/netforce_clinic/actions/clinic_cycle_item.xml @@ -3,5 +3,6 @@ multi_view clinic.cycle.item list,form + [["All",[]],["Draft",[["state","=","draft"]]],["Done",[["state","=","done"]]]] clinic_menu diff --git a/netforce_clinic/actions/clinic_visit_widget.xml b/netforce_clinic/actions/clinic_visit_widget.xml new file mode 100644 index 0000000..9b8637a --- /dev/null +++ b/netforce_clinic/actions/clinic_visit_widget.xml @@ -0,0 +1,7 @@ + + list_view + clinic.visit + [["state","not in",["confirmed"]]] + clinic_visit_widget + 10 + diff --git a/netforce_clinic/layouts/clinic_board.xml b/netforce_clinic/layouts/clinic_board.xml index 6e71737..1738390 100644 --- a/netforce_clinic/layouts/clinic_board.xml +++ b/netforce_clinic/layouts/clinic_board.xml @@ -1,11 +1,11 @@ - - - - + + + + diff --git a/netforce_clinic/layouts/clinic_gen_visit_form.xml b/netforce_clinic/layouts/clinic_gen_visit_form.xml index ef455c7..1a8493e 100644 --- a/netforce_clinic/layouts/clinic_gen_visit_form.xml +++ b/netforce_clinic/layouts/clinic_gen_visit_form.xml @@ -2,8 +2,9 @@ - + + diff --git a/netforce_clinic/layouts/clinic_patient_list.xml b/netforce_clinic/layouts/clinic_patient_list.xml index bbf504a..776bce0 100644 --- a/netforce_clinic/layouts/clinic_patient_list.xml +++ b/netforce_clinic/layouts/clinic_patient_list.xml @@ -6,5 +6,6 @@ + diff --git a/netforce_clinic/layouts/clinic_visit_form.xml b/netforce_clinic/layouts/clinic_visit_form.xml index 8094dc5..abbba06 100644 --- a/netforce_clinic/layouts/clinic_visit_form.xml +++ b/netforce_clinic/layouts/clinic_visit_form.xml @@ -27,7 +27,8 @@