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 button click but in the case of Action type, it's possible to call an action record using the button.