Luciano Rossi
2018-01-25 14:24:28 UTC
Hi!
I need to create an interface to manage the users. For now, I add to my
module the menu item Administration -> Users.
The problem that i'm having, is that I want to restrict the groups that
the user can add or remove from the groups field (many2many).
I added a restriction to the groups field, modifying the definition of
the domain attribute of the groups field, so when choosing the groups to
be added, it will restrict the list of them. But, I don't know how I can
restrict the lines (groups) that the user can remove.
For example, the user can add to the user the groups Accounts and
Purchase. But, if the user already has the group Sale, I do not want
that this group to be remove it.
Any idea?
Thanks!
--
Luciano Rossi - ***@gcoop.coop
http://gcoop.coop - Cooperativa de Software Libre
Julián Alvarez 958 CABA C1414DRT +54 11 4771-0055
Visitá www.tiendas.coop - www.nube.coop
I need to create an interface to manage the users. For now, I add to my
module the menu item Administration -> Users.
The problem that i'm having, is that I want to restrict the groups that
the user can add or remove from the groups field (many2many).
I added a restriction to the groups field, modifying the definition of
the domain attribute of the groups field, so when choosing the groups to
be added, it will restrict the list of them. But, I don't know how I can
restrict the lines (groups) that the user can remove.
For example, the user can add to the user the groups Accounts and
Purchase. But, if the user already has the group Sale, I do not want
that this group to be remove it.
Any idea?
Thanks!
--
Luciano Rossi - ***@gcoop.coop
http://gcoop.coop - Cooperativa de Software Libre
Julián Alvarez 958 CABA C1414DRT +54 11 4771-0055
Visitá www.tiendas.coop - www.nube.coop
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/d068d840-f74e-b260-7b98-0c8ead4fd03d%40gcoop.coop.
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/d068d840-f74e-b260-7b98-0c8ead4fd03d%40gcoop.coop.