changeset 116:48a994b7edce

Fixed wrong SQL constraint declared in Inpatient Registration Fix bug #35744 : https://savannah.gnu.org/bugs/index.php?35744
author Bruno M. Villasanti <bvillasanti@thymbra.com>
date Wed, 07 Mar 2012 14:28:38 -0300
parents 5e2cedc7a89d
children 1d880c28be28
files tryton/health_inpatient/health_inpatient.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tryton/health_inpatient/health_inpatient.py
+++ b/tryton/health_inpatient/health_inpatient.py
@@ -143,7 +143,7 @@
             'button_registration_admission': True,
         })
 
-        _sql_constraints = [
+        self._sql_constraints = [
             ('name_uniq', 'unique(name)',
              'The Registration code already exists')
         ]