Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Odoo Project
Entity: odoo.project.module
Compute Method: _compute_migration_scripts
| Inputs | Method | Outputs |
|---|---|---|
|
+ for rec in self: + rec.migration_scripts = False + if not rec.to_upgrade: + continue + installed_version = rec.installed_version_id + versions_with_mig_script = rec.version_ids.filtered( + lambda v, installed_version=installed_version: ( + v.sequence > installed_version.sequence and v.has_migration_script + ) + ) + rec.migration_scripts = bool(versions_with_mig_script) |
|
