diff --git a/netforce_clinic/layouts/clinic_print_labor_cost.xml b/netforce_clinic/layouts/clinic_print_labor_cost.xml
index 920b4fb..8296cdd 100644
--- a/netforce_clinic/layouts/clinic_print_labor_cost.xml
+++ b/netforce_clinic/layouts/clinic_print_labor_cost.xml
@@ -7,25 +7,19 @@
-
-
+
-
-
-
-
-
-
+
+
-
diff --git a/netforce_clinic/models/print_labor_cost.py b/netforce_clinic/models/print_labor_cost.py
index 4267c86..e663afd 100644
--- a/netforce_clinic/models/print_labor_cost.py
+++ b/netforce_clinic/models/print_labor_cost.py
@@ -81,9 +81,12 @@ class PrintLaborCost(Model):
Please wait until report is generated.
""",
}
- db=get_connection()
get_model("message").create(vals)
- db.commit()
+ return {
+ 'next': {
+ 'type': 'reload',
+ }
+ }
def generate_report(self,ids,context={}):
obj=self.browse(ids)[0]
@@ -179,8 +182,8 @@ class PrintLaborCost(Model):
report_lines=[
{'report_file': 'report_detail','model': 'clinic.report.labor.cost.detail', 'report_id': obj.dt_report_id.id,'field_name': 'dt_report_id'},
{'report_file': 'report_sub_detail','model': 'clinic.report.labor.cost.sub.detail', 'report_id': obj.sub_dt_report_id.id,'field_name': 'sub_dt_report_id'},
- {'report_file': 'report_daily','model': 'clinic.report.labor.cost.daily', 'report_id': obj.dl_report_id.id,'field_name': 'dl_report_id'},
- {'report_file': 'report_ot','model': 'clinic.report.labor.cost.overtime', 'report_id': obj.ot_report_id.id,'field_name': 'ot_report_id'},
+ #{'report_file': 'report_daily','model': 'clinic.report.labor.cost.daily', 'report_id': obj.dl_report_id.id,'field_name': 'dl_report_id'},
+ #{'report_file': 'report_ot','model': 'clinic.report.labor.cost.overtime', 'report_id': obj.ot_report_id.id,'field_name': 'ot_report_id'},
]
for line in obj.lines:
staff=line.staff_id