Browse Source
Merge pull request #703 from Numigi/12.0-fix-partner_firstname-migration
[12.0] Fix migration script 12.0.1.0.0 of partner_firstname
pull/707/head
Pedro M. Baeza
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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. |
|
|
store the config parameter if it is not present. |
|
|
""" |
|
|
""" |
|
|
cr.execute("SELECT 1 FROM ir_config_parameter " |
|
|
cr.execute("SELECT 1 FROM ir_config_parameter " |
|
|
"WHERE name = 'partner_names_order'") |
|
|
|
|
|
|
|
|
"WHERE key = 'partner_names_order'") |
|
|
if not cr.fetchone(): |
|
|
if not cr.fetchone(): |
|
|
cr.execute("INSERT INTO ir_config_parameter (key, value) VALUES " |
|
|
cr.execute("INSERT INTO ir_config_parameter (key, value) VALUES " |
|
|
"('partner_names_order', 'last_first')") |
|
|
"('partner_names_order', 'last_first')") |
|
|