Conversation
…ons from interface
Currently translated at 76.4% (26 of 34 strings) Translation: web-14.0/web-14.0-web_m2x_options_manager Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_m2x_options_manager/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-14.0/web-14.0-web_m2x_options_manager Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_m2x_options_manager/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-14.0/web-14.0-web_m2x_options_manager Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_m2x_options_manager/
Currently translated at 100.0% (33 of 33 strings) Translation: web-14.0/web-14.0-web_m2x_options_manager Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_m2x_options_manager/it/
Field ``option_create_edit_wizard`` has been dropped in the migration: the pop-up wizard does not exist anymore, so the field has no use
2fc3939 to
353614b
Compare
353614b to
4efacbe
Compare
4efacbe to
c97bc39
Compare
|
@AaronHForgeFlow I've tested it and it seems the problem was because the runboat hadn't been updated with the latest changes to the module that depends on web_m2x_options. If you can try it now, thanks. |
|
Hello @AaronHForgeFlow do you have any update for this PR? |
|
@phuctranfxvn I approved it, that's all I can do :) if you review it it'll help |
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thanks for the migration, looks good overall.
The model restructuring is well thought out -- making model_id a related field from field_id.model_id instead of a separate required field simplifies the data model and the constraint correctly narrows from unique(field_id, model_id) to unique(field_id).
The option key migration from create/create_edit to no_create/no_create_edit in _read_own_options / _apply_options is correctly implemented with the proper boolean inversion logic.
Cache clearing properly updated from the old type(self)._get.clear_cache() to self.env.registry.clear_cache() with named caches (default, templates). The ormcache on _get_id also correctly specifies cache="default".
Good additions: can_have_options and comodel_id computed stored fields on ir.model.fields with a pre_init_hook for performance on large databases, and the comodel-based option management via the ir.model form view.
One minor note: the module's own view XML (m2x_create_edit_option_form and m2x_create_edit_option_list_editable) still uses the old-style {'create': False, 'create_edit': False} options on the field_id widget, while the test fixtures and the module's logic itself already use the 19.0 no_create/no_create_edit naming. Not blocking since both forms are likely handled, but updating to {'no_create': True, 'no_create_edit': True} would be consistent.
The CI Detect unreleased dependencies failure is expected -- web_m2x_options and base_view_inheritance_extension are referenced from their PR branches in test-requirements.txt, which resolves once those merge.
|
Hello @Alexgars73 , as the dependency PR is merged now, can you pls rebase this one and ping for a merge? |

Changes:
Options create and create_edit are deprecated, changed to no_create and no_create_edit