Add custom action button to the Opportunity screen in SuiteCRM (SugarCRM)

Subject When working with an opportunity, I would like to change the status of the Opportunity also making some extra logic to execute. For example, when applied online for an opportunity, there is not much information to be added to the opportunity, just to change the status, create a log record (Activity) and to create…