diff --git a/partner_property/migrations/16.0.1.1.0/pre-migration.py b/partner_property/migrations/16.0.1.1.0/pre-migration.py index 3d7f1b4672f..059419f0969 100644 --- a/partner_property/migrations/16.0.1.1.0/pre-migration.py +++ b/partner_property/migrations/16.0.1.1.0/pre-migration.py @@ -15,7 +15,7 @@ def migrate(env, version): WHERE key = 'partner_property.properties_definition' """, ) - icp = env["ir.config_parameter"].get_param( - "partner_property.properties_definition_company" + icp = env["ir.config_parameter"].search( + [("key", "=", "partner_property.properties_definition_company")] ) icp.copy({"key": "partner_property.properties_definition_person"})