[18.0][FIX] web_m2x_options: allow field-level overrides of the global create and create_edit options
#3400
+35
−22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_optionsmodule provides globalir.config_parameteroptions to control "Create..." and "Create and Edit..." entries for all widgets in the Odoo instance:web_m2x_options.create- Controls "Create..." entry globallyweb_m2x_options.create_edit- Controls "Create and Edit..." entry globallyPreviously, 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.
Functionally tested coupled with https://github.com/OCA/web/tree/18.0/web_m2x_options_manager