Discussion:
[tryton] Write access to field where the model is read only?
Steven Lightfoot
2018-02-09 21:56:10 UTC
Permalink
I have a module that displays some calculations based on a selection field. It’s a reference module only, I don’t want a user to add or delete data. I have preloaded the table with data.

If I make the model read only, I can’t change the selection to do the calculations but if I allow write access to the model then the option to save is available.

Is there a way of disabling the save, create but still allowing a user access to the selection field?
--
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/501045fe-cb0c-4872-9851-9f5f3e5b34b7%40googlegroups.com.
Cédric Krier
2018-02-10 00:06:03 UTC
Permalink
I have a module that displays some calculations based on a selection field. It’s a reference module only, I don’t want a user to add or delete data. I have preloaded the table with data.
If I make the model read only, I can’t change the selection to do the calculations but if I allow write access to the model then the option to save is available.
Is there a way of disabling the save, create but still allowing a user access to the selection field?
No, access rights are layers that appends on each other, so you must
have the right on each layers that have effectively the right.
--
Cédric Krier - B2CK SPRL
Email/Jabber: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
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/20180210000603.GJ24410%40kei.
Steven Lightfoot
2018-02-10 13:00:52 UTC
Permalink
Thanks for the clarification
--
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/d4ec6661-3ce8-44eb-87a7-05d61e51d763%40googlegroups.com.
Loading...