Program Multi-Menu
program_multi_menu · OCA/program
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by20/254 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
program_result— Class 'program_result' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprogram_result— Class 'program_result' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceprogram_result_intervention— Class 'program_result_intervention' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprogram_result_intervention— Class 'program_result_intervention' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceprogram_result_level— Class 'program_result_level' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprogram_result_level— Class 'program_result_level' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceprogram_result_tag— Class 'program_result_tag' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprogram_result_tag— Class 'program_result_tag' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceprogram_result_target— Class 'program_result_target' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceprogram_result_target— Class 'program_result_target' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_program_result_level_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Program Multi-Menu
Allows different result level chains to be placed in their own menus
Adds Custom menu (text field) option to root result level chains. If supplied, a menu will be added to the top OpenERP bar and will stay in sync with the root of the result chain even after chain re-organisation. If not supplied, result menus will be available in main Program menu.
Creation of menus is only available to users with technical features enabled.
Contributors
- Sandy Carter (sandy.carter@savoirfairelinux.com)
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- program_multi_menu_budget, program_multi_menu_evaluation, program_multi_menu_indicator, program_multi_menu_team
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_program_result_form |
program.result | form | Inherits program.view_program_result_form | |
view_program_result_level_form |
program.result.level | form | Inherits program.view_program_result_level_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (7)-
create(self, cr, user, vals, context=None) -
create_groups(self, cr, user, vals, menu_id, menus_old_to_new, context=None)Copy the ACLs from base program Remove their rights from the original menus and add them to the new menus' equivalents. -
create_menus(self, cr, user, vals, context=None)Copy menus from original Programing menu Create a mapping of these old menus for the new menus so ACLs can be transferred. -
post_write_menu_writes(self, cr, user, ids, parent_id, vals, context=None) -
unlink(self, cr, uid, ids, context=None)If one of the extra RBM menu chains is removed, remove menu and all other related models -
validate_vals(self, vals) -
write(self, cr, user, ids, vals, context=None)Bubble up Top Menu configuration if chain root changes
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.