[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] Hospitalized [["patient_status", "=", true]] causes err
From: |
Cédric Krier |
Subject: |
Re: [Health-dev] Hospitalized [["patient_status", "=", true]] causes error when viewing Hospitalizations and Health Services |
Date: |
Tue, 26 Jan 2016 09:50:44 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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
Email/Jabber: address@hidden
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
pgpM4Q70KnpRE.pgp
Description: PGP signature