diff --git a/netforce_clinic/models/print_labor_cost.py b/netforce_clinic/models/print_labor_cost.py index 8d84163..ba5667e 100644 --- a/netforce_clinic/models/print_labor_cost.py +++ b/netforce_clinic/models/print_labor_cost.py @@ -141,15 +141,15 @@ class PrintLaborCost(Model): load_report(lcname,link) # generate labor cost summary - #sum_name='labor.cost-summary.xlsx' - #link='http://localhost:9999/report_export_xls?model=clinic.report.labor.cost.summary&template=report_labor_cost_summary&active_id=%s'%(sum_id) - #load_report(sum_name,link) + sum_name='labor.cost-summary.xlsx' + link='http://localhost:9999/report_export_xls?model=clinic.report.labor.cost.summary&template=report_labor_cost_summary&active_id=%s'%(sum_id) + load_report(sum_name,link) - #obj.write({ - #'report_summary': sum_name, - #'report_labor_cost': lcname, - #}) - #db.commit() + obj.write({ + 'report_summary': sum_name, + 'report_labor_cost': lcname, + }) + db.commit() report_lines=[ {'report_file': 'report_detail','model': 'clinic.report.labor.cost.detail', 'report_id': obj.dt_report_id.id,'field_name': 'dt_report_id'},