[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] Hospitalized [["patient_status", "=", true]] causes err
Re: [Health-dev] Hospitalized [["patient_status", "=", true]] causes error when viewing Hospitalizations and Health Services
Tue, 26 Jan 2016 09:50:44 +0100
On 2016-01-26 11:36, Joe Gene Q wrote:
> Dear GNU Health Dev Community,
> I am currently trying out the following domain record rule:
> [["patient_status", "=", true]]
> This rule is a filter that only displays patients whose hospitalization
> status is 'hospitalized'.
> The following error is displayed when there are records with statuses other
> than 'hospitalized' that have been created.
> You try to read records that don't exist anymore.
> (Document type: gnuhealth.patient)
Why are you using a record rule if you need to create other kind of
records? Record rules are for access right not for filtering display.
I think what you are looking for is the domain on ir.action.act_window.
Cédric Krier - B2CK SPRL
Tel: +32 472 54 46 59
Description: PGP signature