changeset 1524:88dd35d6efde stable

health_reporting : Fix bug #43092 Rename evaluations doctor to healthprof
author Sebastian Marro <smarro@thymbra.com>
date Wed, 27 Aug 2014 19:36:44 -0300
parents b9c64f64e267
children 799e29d51353
files tryton/health_reporting/health_reporting.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health_reporting/health_reporting.py
+++ b/tryton/health_reporting/health_reporting.py
@@ -207,15 +207,15 @@
                 Transaction().context['end_date']
 
         return evaluation.select(
-            evaluation.doctor.as_('id'),
+            evaluation.healthprof.as_('id'),
             Max(evaluation.create_uid).as_('create_uid'),
             Max(evaluation.create_date).as_('create_date'),
             Max(evaluation.write_uid).as_('write_uid'),
             Max(evaluation.write_date).as_('write_date'),
-            evaluation.doctor,
-            Count(evaluation.diagnosis).as_('evaluations'),
+            evaluation.healthprof.as_('doctor'),
+            Count(evaluation.id).as_('evaluations'),
             where=where,
-            group_by=evaluation.doctor)
+            group_by=evaluation.healthprof)
 
 
 class EvaluationsSpecialty(ModelSQL, ModelView):