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: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpLQKCPYbDaq.pgp
Description: PGP signature

Reply via email to