I'm trying to set up a document object and i wish to set up a permission many2many field in which users can set permissions based on usergroups and so on.
Is this feasible at all? Record rules don't seem powerful enough for this or are way too convulted to use in this case.
It would be easy if i could somehow compute access permissions with a python function on the model.