many2many widget (default)many2many_tags widgetmany2many_checkboxes widgetmany2many_kanban widgetx2many_counter widgetmany2many_binary widgetmany2many widget (default)The many2many widget uses the default list view for the related model, to display a list of related objects.

Options
no_create - remove the “Create” button.Example
<field name="field_name" options="{'no_create': True}"/>many2many_tags widgetFacebook-like multi item selection.

Options
no_quick_create - remove the Create and edit... option.no_create_edit - remove the Create "foo" option.

no_create - no_quick_create and no_create_edit combined.Example
<field name="field_name"
widget="many2many_tags"
options="{'no_create_edit': True}"/>many2many_checkboxes widgetAccording to a comment in Odoo’s source code:
This type of field display a list of checkboxes. It works only with m2ms. This field will display one checkbox for each record existing in the model targeted by the relation, according to the given domain if one is specified. Checked records will be added to the relation.
There’s no way to use this widget to create new items.

Example
<field name="field_name" widget="many2many_checkboxes"/>many2many_kanban widgetThe many2many_kanban widget uses a Kanban View to display a list of related objects.
This widget can have widely different look and feel, depending on the Kanban View it uses. Here’s a screenshot from the project module:

Example
<field name="field_name" widget="many2many_kanban">
<kanban>
<field name="name"/>
<templates>
<t t-name="kanban-box">
<field name="name"/>
</t>
</templates>
</kanban>
</field>x2many_counter widgetA simple, read only widget displaying a link with an information about the number of related items. The link’s target view can be configured with the views option.
Also useful with one2many fields.

Options
views - According to a comment in Odoo’s source code:
The views to display in the act_window action. Must be a list of tuple whose first element is the id of the view to display (or
Falseto take the default one) and the second element is the type of the view. Defaults to[[false, "tree"], [false, "form"]].
Example
<field name="field_name" widget="x2many_counter" string="things"/>many2many_binary widgetAccording to a comment in Odoo’s source code:
Widget for (many2many field) to upload one or more file in same time and display in list. The user can delete his files.
This widget works exclusively on many2many fields associated with the ir.attachment model.

Example
<field name="field_name" widget="many2many_binary" string="Attach a file"/>
Comments
© Ludwik Trammer, 2014 — built with Jekyll using Lagom theme