Skip to Content
Menu
This question has been flagged
2 Replies
3738 Views

Hi !

I'am really new in Odoo 11 !


I would like to give some users the right to edit 1 or 2 pages of my website (like a presentation's page).


I have 3 groups : Group1, Group2, Group3. They all contains users.

I have 3 pages : Page1, Page2, Page3


I would like that the users in Group1 can edit the content of Page1 from the front-end interface, but only see the content in Page2 and Page3.

Same for Group2 and Group3.


I tried to play with the groups's access rights with no success.

I also tried to create a "rule" in which I give the " 'view_id', '=', id of the page's view" but all I managed to have is a ERROR 500.


It is possible to do what I want to do ? Do I have to code it ?


Thanks you in advance for your response,

Mel


Avatar
Discard
Author Best Answer

Hi !

Many thanks for your response !

I tried what you are saying but I have some issue with it.

  1. I created a group "base.mycustomgroup" with two users in it

  2. In the template of my view, there is a <nav> field with the attribute groups="base.mycustomgroup"

Those who are not in mycustomgroup cannot see  <nav>'s content. This is the wanted behaviour.

But those who are in the group cannot see the content either.


Do you have an idea ? Maybe I have used the "groups" attribute wrongly...




Avatar
Discard
Best Answer

HI,


try to give groups="your_custom_groups" in template,

 (add the security Group on your template view and add the user which you want to access to that particular page)

Maybe it will help you.


Thanks

Avatar
Discard