We added a button in the previous form view, but there are quite a few different types of buttons that we can use. This recipe will add another button. It will also put the following code in the recipe's header element.
Adding buttons to forms
How to do it...
Add a button that refers to an action:
<button type="action"
name="%(base.action_partner_category_form)d"
string="Open partner categories" />
How it works...
The button's type attribute determines the semantics of the other fields, so we'll first take a look at...