In a form view, create a button that has the `no_save` attribute, for instance:
.. code-block:: xml
<button
type="object"
name="method_name"
string="Call method_name without saving"
no_save="True"
/>