[FIX] upgrade_analysis: avoid call privatized 'mapped' function.

FIX: #3215.
Rational : 'mapped' function has been privatized in a1adf8355c.
We so replace 'mapped' by 'search_read'
pull/3218/head
Sylvain LE GAL 2025-03-04 16:43:13 +01:00
parent 8e9aeb409e
commit 3b87f87d86
1 changed files with 7 additions and 5 deletions

View File

@ -548,11 +548,13 @@ class UpgradeAnalysis(models.Model):
all_local_modules = (
self.env["ir.module.module"].search(module_domain).mapped("name")
)
all_remote_modules = (
connection.env["ir.module.module"]
.browse(connection.env["ir.module.module"].search(module_domain))
.mapped("name")
)
all_remote_modules = [
x["name"]
for x in connection.env["ir.module.module"].search_read(
module_domain, ["name"]
)
]
start_version = connection.version
end_version = release.major_version