feat: use cached db value
This commit is contained in:
parent
0091f514b5
commit
ba2da078af
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ class Workspace:
|
|||
step = doc.as_dict().copy()
|
||||
step.label = _(doc.title)
|
||||
if step.action == "Create Entry":
|
||||
step.is_submittable = frappe.db.get_value("DocType", step.reference_document, 'is_submittable')
|
||||
step.is_submittable = frappe.db.get_value("DocType", step.reference_document, 'is_submittable', cache=True)
|
||||
steps.append(step)
|
||||
|
||||
return steps
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue