mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix(escaping): make_italian_localization_fields.py
This commit is contained in:
@@ -19,7 +19,7 @@ def execute():
|
|||||||
# Set state codes
|
# Set state codes
|
||||||
condition = ""
|
condition = ""
|
||||||
for state, code in state_codes.items():
|
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:
|
if condition:
|
||||||
condition = "state_code = (case state {0} end),".format(condition)
|
condition = "state_code = (case state {0} end),".format(condition)
|
||||||
|
|||||||
Reference in New Issue
Block a user