This modules modifies "many2one" and "many2manytags" form widgets so as to add some new display control options.
Options provided includes possibility to remove "Create..." and/or "Create and Edit..." entries drop down. You can also change default number of proposition appearing in the drop-down.
If not specified, the module will avoid proposing any of the create options if the current user has no permission rights to create the related object.
auto_awesome What this module does
AI-generated from the code · Odoo 20.0Adds display controls to many2one and many2many tag fields: hide the "Create" and "Create and Edit" options, limit how many suggestions appear in dropdowns, disable the open-link button, and colour suggestions by a field value. Defaults can be set globally for all users.
This module changes how relation fields (the fields where you pick a record from another table, like a customer or a product) behave in forms. It does not add new screens or menus; it adjusts existing dropdowns and tag fields.
What users notice: - The "Create..." and "Create and Edit..." entries in a dropdown can be hidden, either per field or for everyone through system settings. - The number of suggestions shown in a dropdown can be limited, per field or globally. - The button that opens the linked record can be turned off. - Suggestions in a dropdown can be coloured according to a value stored on the related record, using a colour mapping defined on the field. - Lists of related records inside a form (for example order lines) can be limited to a fixed number of rows per page.
Automatic behaviour: if nothing is configured, the module hides the create options when the current user is not allowed to create that kind of record. Global defaults are read from system parameters and applied to every user's session.
The module touches the many2one field, the many2many tags field (including the avatar variant), the shared autocomplete component and the form controller. It extends ir.config_parameter and ir.http to expose the global settings.
Depends on
Required by other modules
Models and fields (2)
- ir.http · extends an existing model
- ir.config_parameter · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 20.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 9 confirmed, 0 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/web.
terminal Installation and usage
OCA documentation · Odoo 20.0Usage
Source · Odoo 20.0in the field's options dict
limit int (Default: odoo default value is 8)
> Number of displayed record in drop-down panel
field_color string
> A string to define the field used to define color. This option has to > be used with colors.
colors dictionary
> A dictionary to link field value with a HTML color. This option has to > be used with field_color.
ir.config_parameter options
Now you can disable "Create..." and "Create and Edit..." entry for all widgets in the odoo instance. If you disable one option, you can enable it for particular field by setting "create: True" option directly on the field definition.
web_m2x_options.create boolean (Default: depends if user have create rights)
> Whether to display the "Create..." entry in dropdown panel for all > fields in the odoo instance.
web_m2x_options.create_edit boolean (Default: depends if user have create rights)
> Whether to display "Create and Edit..." entry in dropdown panel for > all fields in the odoo instance.
web_m2x_options.limit int (Default: odoo default value is 8)
> Number of displayed record in drop-down panel for all fields in the > odoo instance
web_m2x_options.field_limit_entries int
> Number of displayed lines on all One2many fields
To add these parameters go to Configuration -\> Technical -\> Parameters -\> System Parameters and add new parameters like:
- web_m2x_options.create: False
- web_m2x_options.create_edit: False
- web_m2x_options.limit: 10
- web_m2x_options.field_limit_entries: 5
Example
Your XML form view definition could contain:
...
<field name="partner_id" options="{'limit': 10, 'field_color':'type', 'colors':{'contact':'green', 'invoice': 'red', 'delivery': 'blue'}}"/>
...No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.