From d5e1df01322ee3b85ec4c32bd6d0527f130c04ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Tue, 9 Jul 2024 14:36:04 +0200 Subject: [PATCH] [OU-FIX] partner_property: Fix migration script (create properly partner_property.properties_definition_person) Related to https://github.com/OCA/partner-contact/pull/1811/commits/d3e2fe80b1b5776912cbb21717aa03eef269c2d8 TT49480 --- partner_property/migrations/16.0.1.1.0/pre-migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"})