Role permissions

Hello everyone
I’ve met the problem, hope you can help me.
I need to give my Accountant access to the Axelor. Accountant must have READ ONLY access to SALES, PURCHASING & STOCK to see the documents and without ability to change them.
I’ve created all permissions for that (read only) and my accountant can see the documents and can’t change them.
BUT he can to change the status of the documents (confirm sale orders & purchasing orders for example). How can I hide or forbid pressing these buttons:


All permissions for this role is set to READ only

Hello,

You have the choice

Or, do an action-attrs on the On Load of the existing views concerned which

<action-attrs name="action-????-attrs-hide-button-readonly-field">
  <attribute name="hidden" for="yourBtn1" expr="eval: .../… />
  <attribute name="hidden" for="yourBtn2" expr="eval: .../… />
</action-attrs>

Or create specific read-only views without buttons allowing actions. These views would be accessible by users with read-only roles.

Regards

1 « J'aime »