We added a button in the previous form, but there are quite a few different types of buttons to use. This recipe will add another button; also, it will put the following code in the previous recipe's header element.
Adding buttons to forms
How to do it...
Add a button referring 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 look into the possible...