changeset 2356:a7390b2660f3

health_gyneco : Look for biological sex and hide GYN/OB page if biological sex is male
author Luis Falcon <falcon@gnu.org>
date Fri, 15 Jan 2016 11:07:35 +0000
parents f3e132791b38
children 612e9be5448a
files tryton/health_gyneco/health_gyneco.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health_gyneco/health_gyneco.py
+++ b/tryton/health_gyneco/health_gyneco.py
@@ -593,7 +593,7 @@
     @classmethod
     def view_attributes(cls):
         return [('//page[@id="page_gyneco_obs"]', 'states', {
-                'invisible': Equal(Eval('sex'), 'm'),
+                'invisible': Equal(Eval('biological_sex'), 'm'),
                 })]
 
 class PatientMenstrualHistory(ModelSQL, ModelView):