Mercurial > hgweb > health
changeset 1471:1e4ac29c0a8e
health : revert changeset 1466:aeca38fff263
| author | Luis Falcon <falcon@gnu.org> |
|---|---|
| date | Sun, 20 Jul 2014 20:01:42 +0100 |
| parents | 4fa77deb8260 |
| children | 6c87746a035b |
| files | tryton/health/health.py |
| diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health/health.py +++ b/tryton/health/health.py @@ -1076,7 +1076,10 @@ name = fields.Many2One( 'party.party', 'Health Professional', required=True, - domain=[('is_healthprof', '=', True)], + domain=[ + ('is_healthprof', '=', True), + ('is_person', '=', True), + ], help='Health Professional\'s Name, from the partner list') institution = fields.Many2One( @@ -1772,7 +1775,10 @@ name = fields.Many2One( 'party.party', 'Patient', required=True, - domain=[('is_patient', '=', True)], + domain=[ + ('is_patient', '=', True), + ('is_person', '=', True), + ], states={'readonly': Bool(Eval('name'))}, help="Person associated to this patient")
