mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
fix(escaping): make_italian_localization_fields.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user