[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health] Group configuration
From: |
Luis Falcon |
Subject: |
Re: [Health] Group configuration |
Date: |
Sun, 9 Oct 2016 17:14:19 +0100 |
Dear Iwan
El Sun, 9 Oct 2016 11:14:09 -0300
"Iwan de Rooij" <address@hidden> escribió:
> Dear Community,
>
>
>
> I am very busy adapting Gnu health to our organization and can use
> some help with that.
>
>
>
> Question
>
>
>
> I have made a group for our diabetic foot clinic.
>
> The user related to this group should only see the fields I have
> allowed them to use.
You can use ir.action-res-group model in your module view file.
There you have the action and the group params.
The structure would be something like this :
<record model="ir.action-res.group"
id="access_to_keyword_foo">
<field name="action" ref="act_foo_form"/>
<field name="group" ref="group_health_admin"/>
</record>
> When I do not give them right for, let's say Genetics tab on the
> patient information page, they still see the tab but it is empty.
>
> Is there a way to not show the tab at all, when they do not have the
> rights to use those fields?
>
>
Try the class method view_attributes
Bests,
--
Dr. Luis Falcon, M.D., BSc
President, GNU Solidario
GNU Health: Freedom and Equity in Healthcare
http://health.gnu.org