health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health] Tryton Access Rules | Defaults for defined user groups


From: Christoph H. Larsen
Subject: [Health] Tryton Access Rules | Defaults for defined user groups
Date: Sat, 21 Jan 2012 16:08:51 +0430
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110820 Iceowl/1.0b2 Icedove/3.1.12

Dear Crowd,

The problem: I have set up a range of "Parties", including patients,
employees , insurance companies and institutions.
Likewise, I have a number of user groups, such as "Human Resources",
"Patient Registration", etc.
Evidently, we want to make sure that the guys in Human Resources canot
snoop on the patient core daty put down by "Patient Registration' in
Parties.
Hence, I used the access model "Party" for both "Human Resources" and
"Patient Registration", and defined access rules like:
Human Resources can see those objects in the Party model, if the field
is_institution = False AND if the field is_insurance_company = False AND
if the field is_patient = False. Sounds easy, but it is not: The Rules
in the Access Permissions tab of Groups can only do OR, not AND, or this
is what I believe, as I cannot string conditions together. It does not
make any difference, whether I put all conditions into ONE rule, or have
sequential rules with single conditions set up. Any ideas?

Also, for the group "Patient Registration", I would love to have the
fields is_patient and is_person set to TRUE, both to make life easier,
and to prevet the locking the patient registration staff from locking
themselves out of party records, when they forget to set is_patient to
TRUE. Any way how to define default values in Tryton?

Thanks a millions, and best regards from Kabul -

Chris


-- 
Dr. Christoph H. Larsen
synaLinQ (Vietnam)                      synaLinQ (Kenya)
P.O. Box 55, Bưu điện NT, 01 Pasteur    P.O. Box 1607, Village Market
Nha Trang, Khánh Hòa                    Nairobi 00621
Vietnam                                 Kenya
Mobile: +84-98-9607357                  Mobile: +254-753-632481
        +49-176-96456254 (Germany)
Fax:    +49-231-292734790
Email:  address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]