Skip to Content
Menu
This question has been flagged
1 Reply
4795 Views

Hi,

I want to hide Confirm sale button from Sales Order form for specific group. Please help

Thank you

Avatar
Discard
Best Answer

Hi,

just add to this button xml a required group. E.g restrict it to admin (preferably to do it via xml inheritance on a code level):

<button name="action_button_confirm" states="draft" string="Confirm Sale" type="object" groups="base.group_erp_manager"/>
<button name="action_button_confirm" states="sent" string="Confirm Sale" class="oe_highlight" type="object" groups="base.group_erp_manager"/>
Avatar
Discard