El 25/01/18 a les 16:13, Luciano Rossi ha escrit: >> >> If the idea is to prevent removal of existing groups I will probably >> make the current user groups readonly and add a function field which is >> empty by default and it's used to add new groups to the user. >> > > It's a good idea. Perhaps the function field should not be empty. May > be, it could retrieve only the groups that the user has, but that are > allowed to add or remove it.
If you can apply a domain to filter the group of records that the user is allowed to write and modify, you can add a new Many2Many fields which writes to the same relation but applying a filter on target records with the filter attribute: http://doc.tryton.org/4.6/trytond/doc/ref/models/fields.html?highlight=filter#trytond.model.fields.Many2Many.filter -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk -- 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/f3ac3441-1b1a-65a1-9ed9-d270281e5e66%40koolpi.com.
