Description:
In Odoo, we have two types of buttons they are "Object Type" and "Action Type".In the case of the Object type button, the Python method mentioned in the name attribute of the button will be executed on the button click but in the case of the Action type, it's possible to call an action record using the button.