|
|
for rec in self:
if rec.replaced_by_module_id:
# Module replaced by another one
rec.state = "replaced"
continue
if rec.moved_to_standard:
# Module moved to a standard repository (likely from OCA to
# odoo/odoo, like 'l10n_eu_oss', 'knowledge', ...).
# E.g. this could tell integrators that a module like
# 'l10n_eu_oss_oca' should now be used instead.
rec.state = "moved_to_standard"
continue
if rec.moved_to_oca:
# Module moved to an OCA repository
rec.state = "moved_to_oca"
continue
if rec.moved_to_generic:
# Specific module moved to a generic repository (public or private)
rec.state = "moved_to_generic"
continue
rec.state = rec.process or (
"fully_ported"
if (
rec.target_module_branch_id
and not rec.target_module_branch_id.pr_url
)
else "migrate"
)
if rec.process == "migrate" and rec.pr_url:
rec.state = "review_migration"
|
|