Visitor (Germany), Fabien Pinckaers (fp) mailing list archives

I shorten this whole text to t [...]

Gregor Heger
- 12/15/2015 14:57:01

I shorten this whole text to this: I have a model with 50 fields. 2 kind of people work there: Normal ones and "admins". Say the model has 50fields, and 10 are only viewable by group admin. I use the groups="admin" attribute in .py code. The normal people can't see this 10 fields, but there are some buttons which the normal people have to use. The buttons function needs to read the content of these hidden 10 fields for doing some calculations. But if this normal user clicks on it, an Access Error is raised. How to by pass it? By using SUPERUSER_ID in the .browse command of that model?