OdooWiki OCA HUB

Web M2X Options Manager

web_m2x_options_manager folder_open OCA/web open_in_new
Web License: AGPL-3

Allows managing the "Create..." and "Create and Edit..." options for Many2one and Many2many fields directly from the ir.model form view.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets administrators control, per field, whether the "Create" and "Create & Edit" shortcuts appear on Many2one and Many2many fields, directly from the model's form in Odoo.

This module adds a management screen for the "Create" and "Create & Edit" options that appear on relational fields (Many2one and Many2many). Instead of editing views by hand, an administrator can decide, field by field, how those options behave.

Where it appears: - On each model's form (Settings > Technical > Models), a new "Create/Edit Options" tab lists the options for that model's fields and for fields of other models that point to it. - A new menu "Fields' Create & Edit Options" lists all configured options, with filters and grouping by model, comodel, and option type.

What users can do: - For each field, choose a behaviour for "Create" and for "Create & Edit": Do nothing, Add, Force Add, Remove, or Force Remove. "Add/Remove" only applies if the view does not already define the option; "Force" always overrides it. - Use the Fill and Empty buttons on a model to create missing option records with default values or to delete all options for that model's fields, or for fields whose comodel is that model.

Business rules and automatic behaviour: - Only Many2one and Many2many fields can have options; other fields are rejected with an error. - Options are unique per field. - When a view is displayed, the configured options are automatically applied to the matching field. - Access is read-only for regular users; only system administrators can create, modify, or delete options.

Models and fields (3)
  • ir.model · extends an existing modelm2x_option_ids, comodel_field_ids, m2x_comodels_option_ids
  • ir.model.fields · extends an existing modelcomodel_id, can_have_options
  • m2x.create.edit.option · new modelname, field_id (Field), model_id (Model), comodel_id (Comodel), field_name, model_name, comodel_name (Comodel Name), option_create (Create Option), option_create_edit (Create & Edit Option)

Text generated by AI (DeepSeek) from reading the Odoo 19.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

Go to Settings > Technical > Models.

Choose the model you wish to edit, and open its form view. Go to the "Create/Edit Options" tab, and add the fields you want to manage in 2 different sections:

  • the first list view allows you to handle fields for the selected model
  • the second list view allows you to handle fields where the selected model is the comodel

For both sections:

  • button "Fill" will add every missing field to the options
  • button "Empty" will remove every option

No verified information in OCA: Installation, Configuration.

info

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.