[18.0][FIX] web_m2x_options: allow field-level overrides of the global create and create_edit options#3400
[18.0][FIX] web_m2x_options: allow field-level overrides of the global create and create_edit options#3400Ricardoalso wants to merge 1 commit intoOCA:18.0from
create and create_edit options#3400Conversation
…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.
fac52dd to
f7d8ffc
Compare
|
@SilvioC2C you may be interested |
|
@Ricardoalso Maybe you should update the documentation of the addon to explain how the new features are used. |
SilvioC2C
left a comment
There was a problem hiding this comment.
LGTM, thanks!
Agree w/ @gurneyalex about updating the docs though
|
This PR has the |
|
@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. 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. |
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.
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