From 6fdfc5d154b9f7b97e78d4e4966eceeb73b36e66 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Thu, 30 Jul 2015 09:33:51 +0700 Subject: [PATCH] xxx --- netforce_clinic/models/print_labor_cost.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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'},