diff --git a/crm/api/doc.py b/crm/api/doc.py index 9273fef7..ce611e15 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -47,6 +47,7 @@ def get_filterable_fields(doctype: str): "Small Text", "Text Editor", "Text", + "Duration", "Date", "Datetime", ] diff --git a/frontend/src/components/Filter.vue b/frontend/src/components/Filter.vue index fb03e688..11807885 100644 --- a/frontend/src/components/Filter.vue +++ b/frontend/src/components/Filter.vue @@ -247,6 +247,15 @@ function getOperators(fieldtype, fieldname) { if (typeCheck.includes(fieldtype)) { options.push(...[{ label: 'Equals', value: 'equals' }]) } + if (['Duration'].includes(fieldtype)) { + options.push( + ...[ + { label: 'Like', value: 'like' }, + { label: 'Not Like', value: 'not like' }, + { label: 'Is', value: 'is' }, + ] + ) + } if (typeDate.includes(fieldtype)) { options.push( ...[