瀏覽代碼

[fix] workflow message (#2056)

version-14
akshay83 8 年之前
committed by Rushabh Mehta
父節點
當前提交
14b8e5cee4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/translate.py

+ 2
- 2
frappe/translate.py 查看文件

@@ -366,8 +366,8 @@ def get_messages_from_workflow(doctype=None, app_name=None):
'select distinct message from `tabWorkflow Document State` where parent=%s and message is not null', 'select distinct message from `tabWorkflow Document State` where parent=%s and message is not null',
(w['name'],), as_dict=True) (w['name'],), as_dict=True)


messages.extend([("Workflow: " + w['name'], states['message'])
for state in states if is_translatable(state['state'])])
messages.extend([("Workflow: " + w['name'], state['message'])
for state in states if is_translatable(state['message'])])


actions = frappe.db.sql( actions = frappe.db.sql(
'select distinct action from `tabWorkflow Transition` where parent=%s', 'select distinct action from `tabWorkflow Transition` where parent=%s',


Loading…
取消
儲存