menu
parent
7a979d17bd
commit
7321ab3d01
|
@ -1,5 +1,5 @@
|
|||
<action>
|
||||
<field name="string">Matching HDCase</field>
|
||||
<field name="string">HD Cases Matching</field>
|
||||
<field name="view_cls">report</field>
|
||||
<field name="model">clinic.matching.hdcase</field>
|
||||
<field name="report_template">matching_hdcase</field>
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<action>
|
||||
<field name="string">HD Cases Matching</field>
|
||||
<field name="view_cls">report</field>
|
||||
<field name="model">clinic.matching.hdcase</field>
|
||||
<field name="report_template">matching_hdcase</field>
|
||||
<field name="report_template_xls">matching_hdcase</field>
|
||||
<field name="menu">account_menu</field>
|
||||
</action>
|
|
@ -3,7 +3,8 @@
|
|||
<item string="Ratchawat">
|
||||
<item string="Labor Costs" action="clinic_labor_cost"/>
|
||||
<item string="Labor Cost Entries" action="clinic_labor_cost_entry"/>
|
||||
<item string="Matching Payments" action="clinic_matching_payment"/>
|
||||
<item string="Payments Matching" action="clinic_matching_payment"/>
|
||||
<item string="HD Cases Matching" action="clinic_matching_hdcase_acc"/>
|
||||
<item string="HD Case Expenses" action="clinic_hd_case_expense"/>
|
||||
<divider/>
|
||||
<header string="REPORTS"/>
|
||||
|
|
|
@ -44,11 +44,9 @@
|
|||
</item>
|
||||
<item string="HD Cases" perm="clinic_hdcase">
|
||||
<item string="HD Cases" action="clinic_hd_case"/>
|
||||
<item string="HD Cases Matching" action="clinic_matching_hdcase"/>
|
||||
<item string="RD Shop" action="clinic_shop" perm="clinic_shop"/>
|
||||
<item string="Sickbed" action="clinic_sickbed"/>
|
||||
<divider/>
|
||||
<header string="OTHERS"/>
|
||||
<item string="Matching HD Case" action="clinic_matching_hdcase"/>
|
||||
</item>
|
||||
<item string="Reporting" perm="clinic_report">
|
||||
<item string="Visit Summary" action="clinic_report_visit"/>
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -92,15 +92,15 @@
|
|||
<div>
|
||||
<a href="#name=clinic_hd_case">{{t "HD Cases"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_matching_hdcase">{{t "HD Cases Matching"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_shop">{{t "RD Shop"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_sickbed">{{t "Sickbed"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_matching_hdcase">{{t "Matching HD Cases"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue