Smart buttons area

Version 8.0 introduced smart buttons, shown as rectangles with a statistic indicator that can be followed through when clicked. The top-right area can have an invisible box where smart buttons can be placed.

This button box is usually added to the form just before the  <div class="oe_title">  element (and avatar image), with the following:

<div name="button_box" class="oe_button_box">
  <!-- Smart buttons will go here... -->
</div>

The container for the buttons is just a div with the oe_button_box class.

In Odoo versions before 11.0 you might need to also add the oe_right class, to ensure that the button box stays aligned to the right-hand side of the form.

We will be discussing buttons in more detail in a later section, ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.