fix(escaping): make_italian_localization_fields.py
This commit is contained in:
parent
2a4d4036f6
commit
f060831cce
@ -19,7 +19,7 @@ def execute():
|
||||
# Set state codes
|
||||
condition = ""
|
||||
for state, code in state_codes.items():
|
||||
condition += " when '{0}' then '{1}'".format(frappe.db.escape(state), frappe.db.escape(code))
|
||||
condition += " when {0} then {1}".format(frappe.db.escape(state), frappe.db.escape(code))
|
||||
|
||||
if condition:
|
||||
condition = "state_code = (case state {0} end),".format(condition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user