Adding a Kanban card option menu

Kanban cards can have an option menu, placed in the top-right. Usual actions are to edit or delete the record, but it's possible to have any action that can be called from a button. We also have a widget to set the card's color.

The following is baseline HTML code for the option menu to be added at the top of the oe_kanban_content element:

<div class="o_dropdown_kanban dropdown"> 
  <!-- Top-right drop down menu here... --> 
  <a class="dropdown-toggle btn" data-toggle="dropdown" href="#"> 
    <span class="fa fa-ellipsis-v" aria-hidden="true"/> 
  </a> 
  <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> 
    <!-- Edit and Delete actions, if available: --> <t t-if="widget.editable"> <li><a type="edit">Edit</a></li> ...

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.