O'Reilly logo

Odoo Development Essentials by Daniel Reis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

View elements

We have seen how to organize the content in a form, using elements such as header, group, and notebook. Now, we can take a closer look at the field and button elements, and what we can do with them.

Buttons

Buttons support these attributes:

  • icon to display. Unlike smart buttons, icons available for regular buttons are those found in addons/web/static/src/img/icons.
  • string is the button text description.
  • type can be workflow, object or action, to either trigger a workflow signal, call a Python method, or run a window action.
  • name is the workflow trigger, model method, or window action to run, depending on the button type.
  • args can be used to pass additional parameters to the method, if the type is object.
  • context sets values on the session ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required