Mercurial > hgweb > health
changeset 1466:aeca38fff263
health : Fix bug #42809. Fails automatically set patient and health professional
https://savannah.gnu.org/bugs/index.php?42809
| author | Bruno M. Villasanti <bvillasanti@thymbra.com> |
|---|---|
| date | Fri, 18 Jul 2014 22:33:36 -0300 |
| parents | add00effe17a |
| children | 4fa77deb8260 |
| files | tryton/health/health.py |
| diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health/health.py +++ b/tryton/health/health.py @@ -1076,10 +1076,7 @@ name = fields.Many2One( 'party.party', 'Health Professional', required=True, - domain=[ - ('is_healthprof', '=', True), - ('is_person', '=', True), - ], + domain=[('is_healthprof', '=', True)], help='Health Professional\'s Name, from the partner list') institution = fields.Many2One( @@ -1775,10 +1772,7 @@ name = fields.Many2One( 'party.party', 'Patient', required=True, - domain=[ - ('is_patient', '=', True), - ('is_person', '=', True), - ], + domain=[('is_patient', '=', True)], states={'readonly': Bool(Eval('name'))}, help="Person associated to this patient")
