Skip to content

Conversation

@Ricardoalso
Copy link

@Ricardoalso Ricardoalso commented Dec 23, 2025

Allow field-level overrides for Many2One and Many2Many fields, while always respecting security permissions. This provides more granular control over the "Create..." and "Create and Edit..." dropdown entries without compromising access control.

The web_m2x_options module provides global ir.config_parameter options to control "Create..." and "Create and Edit..." entries for all widgets in the Odoo instance:

  • web_m2x_options.create - Controls "Create..." entry globally
  • web_m2x_options.create_edit - Controls "Create and Edit..." entry globally

Previously, there was no way to selectively enable these options for specific fields when globally disabled, or to disable them for specific fields when globally enabled.


⚠️
Without using web_m2x_options_manager, this error likely wouldn’t occur (although I haven’t tested every edge case).
Functionally tested coupled with https://github.com/OCA/web/tree/18.0/web_m2x_options_manager

…ate` and `create_edit` options

Allow field-level overrides for Many2One and Many2Many fields, while always respecting security permissions. This provides more granular control over the "Create..." and "Create and Edit..." dropdown entries without compromising access control.
@leemannd
Copy link

leemannd commented Jan 5, 2026

@SilvioC2C you may be interested

@gurneyalex
Copy link
Member

@Ricardoalso Maybe you should update the documentation of the addon to explain how the new features are used.

Copy link
Contributor

@SilvioC2C SilvioC2C left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Agree w/ @gurneyalex about updating the docs though

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@Ricardoalso
Copy link
Author

Ricardoalso commented Jan 7, 2026

@SilvioC2C @gurneyalex Thanks for the reviews

This issue is actually related to a FIX in the web_m2x_options module, which serves as the foundation for the web_m2x_options_manager module.
Without using web_m2x_options_manager, this error likely wouldn’t occur (although I haven’t tested every edge case).

The documentation for web_m2x_options_manager seems quite explicit to me 🤔

Also, my PR description might have been unclear — I’ve now added some extra details to clarify things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants