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 @@ + -