Many2One
This component is used with many2one
fields.
Simple example
<field name="partner_id" />
Disabling buttons
v2.76.0You can disable folder, search and contextual menu buttons by setting the following
properties to false
and can be combined:
showFolder
: Show the folder buttonshowSearch
: Show the search buttonshowMenu
: 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
Property | Description | Type | Default | Version |
---|---|---|---|---|
widget_props | Properties to pass to the widget | object | - | - |
Widget props
Property | Description | Type | Default | Version |
---|---|---|---|---|
showFolder | Show the folder button | boolean | true | v2.76.0 |
showSearch | Show the search button | boolean | true | v2.76.0 |
showMenu | Show the contextual menu | boolean | true | v2.76.0 |