You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
def groups(*groups):
# check if current user are member of one of the given groups.
# If not, raise an error. "To do this action, you should be member of ..."
(3) a button in a view. (<button name='function_name' />)
So it is a more secured approach that writing <button name='function_name' groups='group_xml_id'/> that does'nt prevent for the time being case 1 or 2.
Thanks for the update @legalsylvain. I, too, am super busy - so probably won't have time in the near future either. I've been working on a project with some high test times recently, so have been trying to perform some OCA repo maintenance while waiting for test results (hence my comment) 🚀
Implementation
Call sample
Main interest
The check will be done if function is called by
(<button name='function_name' />)
So it is a more secured approach that writing
<button name='function_name' groups='group_xml_id'/>
that does'nt prevent for the time being case 1 or 2.Ref of the previous discussion
OCA/server-tools#944
CC : @NL66278, @ lasley, @pedrobaeza
The text was updated successfully, but these errors were encountered: