From 4e9025a0fef4f8f1791c415940dc06174e408c06 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 9 Dec 2014 11:24:41 +0700 Subject: [PATCH] labor cost --- netforce_clinic/actions/clinic_hd_case.xml | 1 - .../actions/clinic_labor_cost_entry.xml | 7 + .../layouts/clinic_labor_cost_entry_form.xml | 41 ++++++ .../layouts/clinic_labor_cost_entry_list.xml | 5 + .../layouts/clinic_labor_cost_form.xml | 2 +- .../layouts/clinic_labor_cost_list.xml | 3 +- netforce_clinic/layouts/clinic_menu.xml | 2 - .../layouts/clinic_menu_inherit.xml | 1 + netforce_clinic/models/__init__.py | 2 + netforce_clinic/models/labor_cost.py | 8 ++ netforce_clinic/models/labor_cost_entry.py | 124 ++++++++++++++++++ .../models/labor_cost_entry_line.py | 27 ++++ netforce_clinic/todo.txt | 3 +- 13 files changed, 220 insertions(+), 6 deletions(-) create mode 100644 netforce_clinic/actions/clinic_labor_cost_entry.xml create mode 100644 netforce_clinic/layouts/clinic_labor_cost_entry_form.xml create mode 100644 netforce_clinic/layouts/clinic_labor_cost_entry_list.xml create mode 100644 netforce_clinic/models/labor_cost_entry.py create mode 100644 netforce_clinic/models/labor_cost_entry_line.py diff --git a/netforce_clinic/actions/clinic_hd_case.xml b/netforce_clinic/actions/clinic_hd_case.xml index 2dbf99f..04b3628 100644 --- a/netforce_clinic/actions/clinic_hd_case.xml +++ b/netforce_clinic/actions/clinic_hd_case.xml @@ -2,7 +2,6 @@ HD Cases multi_view clinic.hd.case - [ ["All",[]],["Draft",[["state","=","draft"]]], ["Waiting Treatment",[["state","=","waiting_treatment"]]], diff --git a/netforce_clinic/actions/clinic_labor_cost_entry.xml b/netforce_clinic/actions/clinic_labor_cost_entry.xml new file mode 100644 index 0000000..33012b3 --- /dev/null +++ b/netforce_clinic/actions/clinic_labor_cost_entry.xml @@ -0,0 +1,7 @@ + + Labor Cost Entries + multi_view + clinic.labor.cost.entry + account_menu + [["All",[]],["Draft",[["state","=","draft"]]],["Approved",[["state","=","approved"]]]] + diff --git a/netforce_clinic/layouts/clinic_labor_cost_entry_form.xml b/netforce_clinic/layouts/clinic_labor_cost_entry_form.xml new file mode 100644 index 0000000..4d9be96 --- /dev/null +++ b/netforce_clinic/layouts/clinic_labor_cost_entry_form.xml @@ -0,0 +1,41 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +