Browse Source

[12.0] Fix migration script 12.0.1.0.0 of partner_firstname

14.0
David Dufresne 6 years ago
committed by Luis Torres
parent
commit
ece899be68
  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