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
parent
commit
c1f7e4b5b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      partner_firstname/migrations/12.0.1.0.0/pre-ir_config_param.py

2
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')")

Loading…
Cancel
Save