From ece899be682b8713c27e5a4d6189c09afb722c5c Mon Sep 17 00:00:00 2001 From: David Dufresne <27902736+ddufresne@users.noreply.github.com> Date: Wed, 13 Feb 2019 10:03:57 -0500 Subject: [PATCH] [12.0] Fix migration script 12.0.1.0.0 of partner_firstname --- partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py b/partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py index 7befc7814..d176998a4 100644 --- a/partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py +++ b/partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py @@ -4,7 +4,7 @@ def store_ir_config_param(cr): store the config parameter if it is not present. """ cr.execute("SELECT 1 FROM ir_config_parameter " - "WHERE name = 'partner_names_order'") + "WHERE key = 'partner_names_order'") if not cr.fetchone(): cr.execute("INSERT INTO ir_config_parameter (key, value) VALUES " "('partner_names_order', 'last_first')")