Actions in Kanban views

In QWeb templates, the <a> tag for links can have a type attribute. It sets the type of action the link will perform so that links can act just like buttons in regular forms. So in addition to the <button> elements, the <a> tags can also be used to run Odoo actions.

As in form views, the action type can be action or object, and it should be accompanied by a name attribute, identifying the specific action to execute. Additionally, the following action types are also available:

  • open opens the corresponding form view
  • edit opens the corresponding form view directly in edit mode
  • delete deletes the record and removes the item from the Kanban view

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.