I am working in Odoo 19, and I want to restrict the number of employees who can apply a discount on orders in pos.
For example, if I have 5 employees, all of them should open, sell, and close the session of the pos once they finish working, but only two of them can apply a discount on orders when selling.
I already set up global discounts, and I have activated "Log in with employees" and also I have given the 2 employees who can apply discounts the "advanced rights" and others "minimal rights" in the pos interface.
Could you give me a hand, please? Thanks.
Hello
Do you want to know the difference between advance rights and minimal rights regarding Discount?
You can hide discount button per employee with a small customization. So employee can close register but do not apply discount.
Show e the way please because I cannot access studio via the point of sale.
I want to prevent an employee from applying discount in the pos but allow him to close Register.
Studio won’t help much inside POS UI.
The approach is:
-> Add a Boolean field (e.g., “Can Apply Discount”) on Employee
-> Inherit the POS Discount button template
-> Hide/disable the button based on that Boolean
So only employees with that flag enabled will see and use the discount button.
Hope this clears to you
Hello, thank you. So, tell me please how I can configure the custom module required?
Hello
Do you have the technical knowledge regarding Odoo development?
No I don't get technical knowledge in odoo but my coworker does, thank you for the help. He gets the point.
Glad it helped!