[minor][fix] check workflow document state messages is translatable

This commit is contained in:
Saurabh 2016-10-05 10:53:57 +05:30
parent 12baefd4a9
commit a5c74e661a

View file

@ -364,7 +364,7 @@ def get_messages_from_workflow(doctype=None, app_name=None):
(w['name'],), as_dict=True)
messages.extend([("Workflow: " + w['name'], states['message'])
for state in states if is_translatable(state['state'])])
for state in states if is_translatable(state['message'])])
actions = frappe.db.sql(
'select distinct action from `tabWorkflow Transition` where parent=%s',