diff --git a/crm/api/doc.py b/crm/api/doc.py index bbafda0f..e3c8acc4 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -41,6 +41,7 @@ def get_filterable_fields(doctype: str): "Float", "Int", "Currency", + "Dynamic Link", "Link", "Long Text", "Select", diff --git a/frontend/src/components/Filter.vue b/frontend/src/components/Filter.vue index f643d888..d9a6ea38 100644 --- a/frontend/src/components/Filter.vue +++ b/frontend/src/components/Filter.vue @@ -103,7 +103,7 @@ import { FormControl, Autocomplete, createResource } from 'frappe-ui' import { h, defineModel, computed } from 'vue' const typeCheck = ['Check'] -const typeLink = ['Link'] +const typeLink = ['Link', 'Dynamic Link'] const typeNumber = ['Float', 'Int', 'Currency', 'Percent'] const typeSelect = ['Select'] const typeString = ['Data', 'Long Text', 'Small Text', 'Text Editor', 'Text'] @@ -324,6 +324,9 @@ function getValSelect(f) { })), }) } else if (typeLink.includes(fieldtype)) { + if (field.fieldtype === 'Dynamic Link') { + return h(FormControl, { type: 'text' }) + } return h(Link, { class: 'form-control', doctype: options }) } else if (typeNumber.includes(fieldtype)) { return h(FormControl, { type: 'number' })