How to hide product margin and cost to employee

Hello
I’m on Dolibarr 8.0.4
I have a huge problem with product detail in many pages on web
such as order page is show all product cost and margin to all users

is it possible to turn it off for employee or non-admin user
i find that all in website and on control panel but nothing about it

please help
thank you everybody
good day

Does this help ypu?

User -> Permissions:

1 Like

Dear Mr. Peter

I’m really glad to got answer,
This is really helpful.:heart::heart::heart:

one last question ,
for employees, i still can see cost in stock checking page
possible to turn it off or i can just remove the code from php?

Really thanks
Regards,

I would recommend to study how the Constants of Setup-> Other Setup which change rights of users are implemented and would put code snippets together with the definition of an own Constant in front of the code sections which cause the unwanted display of data.

Not only is this consistent with much of Dolibarr - it also makes it posible to add your Constant and code into mainstream development of Dolibarr.

1 Like

Thank you so much sir