Hi All,

I have a 'AdmiittedPatient' class with following two fields:

patient = fields.One2Many('party.party','Patient')
bed_transfers = fields.One2Many('gnuhealth.bed.transfer', 'name',
        'Transfer History', readonly=True)

where  gnuhealth.bed.transfer ('BedTransfers') class has:
    bed_from = fields.Many2One('gnuhealth.hospital.bed', 'From',)
    bed_to = fields.Many2One('gnuhealth.hospital.bed', 'To',)

Now, I am trying to write a domain rule which will display those patients
who were transferred to a Bed with id 15.

(Eval('15'), 'in', [Eval('bed_transfers',{}).get('bed_from', -1)])

But, it is failing with an error. Any help please?
-- 

Regards,
Khurram.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/CAM3N3CydkYy6RFJJTJfGBYzjOzGHLdwRgAtPUc5bUTdK90H78A%40mail.gmail.com.

Reply via email to