I’m trying to customize the Sales module so that the "Create" button is hidden only in the Sale Orders view, but it should remain visible for Quotations.
What I’ve tried:
- Adding a domain/context check in the XML view.
- Overriding the can_create method (no effect).
- Applying security rules — but it hides the button in both views.
My use case:
I want users to only be able to create Quotations, not direct Sale Orders.
💡 Question:
What is the best way to achieve this? Can we apply a condition in XML or through context in action_orders to hide the "Create" button?
Thanks in advance!