Hello everyone!
I need to restrict the creation of opportunities in the CRM module, that's why I have a custom module that inherits directly from "crm.lead". What I need is to disable the "Create" button when the "type_executive" attribute (res.users) of the current user is different from 4. How can I do it? The code I am using in the inherited view is as follows (currently nobody can create opportunities):