Add a button in the detail mask or edit a record

Hi, you can add a button in the detail mask or edit a record

Have you read the Developer Guide?

You can change the files describing the views (TPL’s, viewdefs) or you can actually override the classes producing the views:

https://docs.suitecrm.com/developer/views/