Skip to content

Many2One

This component is used with many2one fields.

Simple example

<field name="partner_id" />

Disabling buttons

v2.76.0

You can disable folder, search and contextual menu buttons by setting the following properties to false and can be combined:

  • showFolder: Show the folder button
  • showSearch: Show the search button
  • showMenu: Show the contextual menu

Disable folder button

<field name="partner_id" widget_props="{'showFolder': false}" />

Disable search button

<field name="partner_id" widget_props="{'showSearch': false}" />

Disable contextual menu

<field name="partner_id" widget_props="{'showMenu': false}" />

API

Extends Field API

PropertyDescriptionTypeDefaultVersion
widget_propsProperties to pass to the widgetobject--

Widget props

PropertyDescriptionTypeDefaultVersion
showFolderShow the folder buttonbooleantrue v2.76.0
showSearchShow the search buttonbooleantrue v2.76.0
showMenuShow the contextual menubooleantrue v2.76.0