From 7321ab3d0115f0ef26a2841cb8e1bfd3e9e2273a Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 10 Feb 2015 23:27:24 +0700 Subject: [PATCH] menu --- netforce_clinic/actions/clinic_matching_hdcase.xml | 2 +- netforce_clinic/actions/clinic_matching_hdcase_acc.xml | 8 ++++++++ netforce_clinic/layouts/clinic_account_menu.xml | 3 ++- netforce_clinic/layouts/clinic_menu.xml | 4 +--- netforce_clinic/models/matching_hdcase.py | 2 +- netforce_clinic/templates/clinic_page.hbs | 6 +++--- 6 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 netforce_clinic/actions/clinic_matching_hdcase_acc.xml diff --git a/netforce_clinic/actions/clinic_matching_hdcase.xml b/netforce_clinic/actions/clinic_matching_hdcase.xml index a9961b2..13509ab 100644 --- a/netforce_clinic/actions/clinic_matching_hdcase.xml +++ b/netforce_clinic/actions/clinic_matching_hdcase.xml @@ -1,5 +1,5 @@ - Matching HDCase + HD Cases Matching report clinic.matching.hdcase matching_hdcase diff --git a/netforce_clinic/actions/clinic_matching_hdcase_acc.xml b/netforce_clinic/actions/clinic_matching_hdcase_acc.xml new file mode 100644 index 0000000..a8f9999 --- /dev/null +++ b/netforce_clinic/actions/clinic_matching_hdcase_acc.xml @@ -0,0 +1,8 @@ + + HD Cases Matching + report + clinic.matching.hdcase + matching_hdcase + matching_hdcase + account_menu + diff --git a/netforce_clinic/layouts/clinic_account_menu.xml b/netforce_clinic/layouts/clinic_account_menu.xml index c5110a7..29a46f4 100644 --- a/netforce_clinic/layouts/clinic_account_menu.xml +++ b/netforce_clinic/layouts/clinic_account_menu.xml @@ -3,7 +3,8 @@ - + +
diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index ba3ce02..fc615f1 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -44,11 +44,9 @@ + - -
- diff --git a/netforce_clinic/models/matching_hdcase.py b/netforce_clinic/models/matching_hdcase.py index de91247..dd4132f 100644 --- a/netforce_clinic/models/matching_hdcase.py +++ b/netforce_clinic/models/matching_hdcase.py @@ -57,6 +57,7 @@ class MatchingHDCase(Model): def get_report_data(self,ids,context={}): hdcases={} date=time.strftime("%Y-%m-%d") + lines=[] if ids: obj=self.browse(ids)[0] date=obj.date @@ -135,7 +136,6 @@ class MatchingHDCase(Model): 'note': '%s, %s, %s, %s, %s'%(date,hn,hct,prod_name,fee_amt), } - lines=[] for row in rows: vals=list(row.values()) date,_time=(vals[5] or "").split() diff --git a/netforce_clinic/templates/clinic_page.hbs b/netforce_clinic/templates/clinic_page.hbs index e6e8353..f26dd0b 100644 --- a/netforce_clinic/templates/clinic_page.hbs +++ b/netforce_clinic/templates/clinic_page.hbs @@ -92,15 +92,15 @@ + -