Introducing a new way to review your PRs.

Read the announcement

frappe / crm

Fully featured, open source CRM

View on GitHub

24 documents · Updated Nov 23, 2026

docs / client-record-views

Client record views

Client record views give CRM entity pages a shared way to find, compare, organize, and act on records. The same view controls connect list, grouped, and kanban displays to record detail pages, while field layouts keep important record data visible and editable in context. See CRM client application for the wider client, Client shell and navigation for shared page structure, Lead and deal lifecycle for sales record behavior, and Dashboards and workspaces for other work surfaces.

Record collection views

Record collection views present one entity type as a list, grouped set, or kanban board. Entity pages such as Leads, Deals, Contacts, Organizations, and Tasks supply the entity-specific labels and row display, while ViewControls coordinates the shared data request and view state (frontend/…/ViewControls.vue• L354-520, frontend/…/Leads.vue• L19-35, frontend/…/Deals.vue• L19-35, frontend/…/Tasks.vue• L19-32).

The list and board use the same record data. A list shows selected columns and supports paging. A grouped view arranges the list by one field. A kanban view divides records into columns based on a status or other link or select field. Users can open a record from either list or board, so changing the display does not change the record itself.

The main collection view types are:

ViewPurposeMain user action
ListCompare records in rows and columns.Open a record, select records, or adjust displayed fields.
Group ByCompare records within field-based groups.Choose the field that defines each group.
KanbanFollow records across value-based columns.Move a record to change its column field value.

The display returns a shared result with records, columns, available fields, counts, and the active view settings. The server applies the record filters and sort order before it builds list, grouped, or kanban data (crm/…/doc.py• L256-277, crm/…/doc.py• L358-449, crm/…/doc.py• L523-542).

References: frontend/…/ViewControls.vue• L354-520 frontend/…/Leads.vue• L19-35 frontend/…/Deals.vue• L19-35 frontend/…/Tasks.vue• L19-32 crm/…/doc.py• L256-277 crm/…/doc.py• L358-449

List rows

List rows provide the main comparison surface for entity pages. Each entity page maps the returned fields into a shared list component and adds useful visual values such as avatars, status marks, time labels, ratings, links, and website links (frontend/…/DealsListView.vue• L42-249, frontend/…/LeadsListView.vue• L42-253).

The first meaningful record action is navigation. A row opens the matching detail route and keeps the active view in the URL, which lets the engineer return to the same list context after reviewing a record (frontend/…/ContactsListView.vue• L1-17, frontend/…/Leads.vue• L327-332, frontend/…/Deals.vue• L304-309). The list also reports row selection, filter clicks, column changes, and paging back to the shared controls. A website value is a separate link action: its label and external-link icon open the site without triggering the row action (frontend/…/WebsiteLink.vue• L1-29).

List data is incremental rather than a fixed snapshot. The footer reports the loaded row count and total count, and a load-more action asks the shared resource to fetch a larger page (frontend/…/ContactsListView.vue• L158-175, frontend/…/ViewControls.vue• L1105-1123). List and grouped rows also retain the collection's scroll position per entity type. When the data changes between list and grouped shapes, the active scroll container changes with it (frontend/…/ListRows.vue• L63-105). Tasks use the same list surface, while task actions can open the task editor and keep a link to a related lead or deal separate from row work (frontend/…/Tasks.vue• L161-183).

References: frontend/…/DealsListView.vue• L1-249 frontend/…/LeadsListView.vue• L1-253 frontend/…/WebsiteLink.vue• L1-29 frontend/…/ListRows.vue• L63-112 frontend/…/Tasks.vue• L161-183

Kanban columns

Kanban turns a field with discrete values into a work board. The selected column field supplies the board columns, the title field names each card, and the kanban fields provide the card summary (frontend/…/KanbanSettings.vue• L128-185, crm/…/doc.py• L370-401).

The board supports two kinds of movement. Users can reorder cards and columns as a saved presentation choice. When a card moves to another column, the client reports the source and destination so the shared view controller can write the destination value to the record. The board also exposes a route for each card and keeps card-level actions separate from that route (frontend/…/KanbanView.vue• L71-147, frontend/…/KanbanView.vue• L266-293, frontend/…/ViewControls.vue• L1007-1015). Each column can load more records without loading the full board at once (frontend/…/KanbanView.vue• L150-157, frontend/…/ViewControls.vue• L1055-1071).

Entity pages adapt the card surface to the work. Lead and deal cards can show status, ownership, related organization, activity counts, and quick actions. Task cards show task state and priority, support task creation in a selected column, and expose a separate link to the related lead or deal (frontend/…/Leads.vue• L36-220, frontend/…/Deals.vue• L36-196, frontend/…/Tasks.vue• L34-160).

The board can hide a column without deleting its source value. A later column refresh can discover new values and add them as hidden columns for review (frontend/…/KanbanView.vue• L216-236, crm/…/crm_view_settings.py• L290-305).

References: frontend/…/KanbanView.vue• L71-185 frontend/…/KanbanView.vue• L216-293 frontend/…/KanbanSettings.vue• L128-235 frontend/…/ViewControls.vue• L1007-1071 frontend/…/Leads.vue• L36-220 frontend/…/Deals.vue• L36-196 frontend/…/Tasks.vue• L34-160 crm/…/doc.py• L370-449

View controls

View controls turn the current collection into a focused work set. Filters narrow the records, grouping changes how they are arranged, sorting changes their order, and column or kanban settings change what the user sees. Each change updates the active request and marks the view as changed (frontend/…/ViewControls.vue• L897-1053).

Entity pages define the view choices that fit their work. Leads and Deals support list, grouped, and kanban views with group summaries. Tasks support list and kanban views because task work does not use the grouped summary surface (frontend/…/Leads.vue• L19-35, frontend/…/Deals.vue• L19-35, frontend/…/Tasks.vue• L19-32).

The controls use field metadata to offer valid fields and input types. This keeps a date filter, link filter, select filter, number filter, and text filter aligned with the underlying CRM field rather than treating every value as plain text (crm/…/doc.py• L54-109, frontend/…/Filter.vue• L195-220).

References: frontend/…/ViewControls.vue• L897-1053 frontend/…/Filter.vue• L195-220 frontend/…/Leads.vue• L19-35 frontend/…/Deals.vue• L19-35 frontend/…/Tasks.vue• L19-32 crm/…/doc.py• L54-109

Filters and quick filters

Filters define the conditions that records must meet. The full filter control lets a user select a field, choose an operator, and enter a field-aware value. The control supports text, number, select, link, check, date, duration, and rating values. It converts those conditions into the filter format used by the collection request (frontend/…/Filter.vue• L303-507, frontend/…/Filter.vue• L542-648).

Quick filters are a smaller set of common fields placed beside the collection. They apply simple values directly for checks, selects, links, and dates. Text values use a partial match, and text input waits briefly before it reloads the list (frontend/…/ViewControls.vue• L850-914, frontend/…/QuickFilterField.vue• L1-68). Managers can change which quick filters appear for an entity page. The choice is stored as shared CRM settings rather than only in the current browser view (frontend/…/ViewControls.vue• L773-823).

Record values can also act as filters. Selecting a value in a row adds that value to the current filter set. The like control uses the current user marker to show records liked by that user (frontend/…/ViewControls.vue• L1340-1388). Default filters remain part of the entity page contract and are kept separate from user-added filters when the control displays the active filter count (frontend/…/Filter.vue• L209-223).

References: frontend/…/Filter.vue• L28-155 frontend/…/Filter.vue• L303-507 frontend/…/Filter.vue• L542-648 frontend/…/QuickFilterField.vue• L1-68 frontend/…/ViewControls.vue• L773-914 frontend/…/ViewControls.vue• L1340-1388

Grouping and sorting

Grouping provides a second way to read a list when the user needs work divided by a shared value. The available group fields come from the entity metadata, and the server returns the group options with the data so empty and select values can be represented consistently (frontend/…/GroupBy.vue• L35-73, crm/…/doc.py• L489-521). Leads and Deals can also show a group summary surface for aggregate work on the active filtered set (frontend/…/Leads.vue• L222-227, frontend/…/Deals.vue• L197-203).

Sorting changes the order of a list or grouped result. Users can add more than one sort field, set each direction, remove a field, and reorder the sort priority. Kanban does not expose list sorting because its column and card order provide the board's main organization (frontend/…/SortBy.vue• L20-153, frontend/…/ViewControls.vue• L176-192).

References: frontend/…/GroupBy.vue• L35-73 frontend/…/SortBy.vue• L20-153 frontend/…/Leads.vue• L222-227 frontend/…/Deals.vue• L197-203 crm/…/doc.py• L489-521

Field columns and layouts

List columns describe the fields shown in a row. Users can add, remove, rename, resize, and reorder columns. Numeric values align to the right, while the source rows keep the fields needed to render the result and to support grouping (frontend/…/ColumnSettings.vue• L17-90, frontend/…/ColumnSettings.vue• L218-301, crm/…/doc.py• L340-356).

Record detail layouts describe the fields shown in the detail side panel or a field dialog. A layout can use tabs, sections, columns, visibility rules, and field properties. The same layout model supports quick entry and other focused forms, so a record can be created or reviewed without exposing the full page (frontend/…/FieldLayout.vue• L35-83, frontend/…/FieldLayoutDialog.vue• L102-182).

The detail side panel presents visible fields as a compact editable summary. It sends changes back through the record document, respects read-only and required rules, and can include custom section actions or related content (frontend/…/SidePanelLayout.vue• L1-28, frontend/…/SidePanelLayout.vue• L44-121). Field rendering also applies record-based visibility and edit rules. In a normal record view, it writes through the authoritative record document. In a focused form without a record document, it updates the form data directly (frontend/…/Field.vue• L400-449, frontend/…/Field.vue• L488-573). It also gives URL values a separate action that opens the external site in a new window (frontend/…/Field.vue• L656-683). Detail pages for leads, deals, contacts, and organizations use this panel beside tabs for activity or related records (frontend/…/Lead.vue• L54-220, frontend/…/Deal.vue• L41-163, frontend/…/Organization.vue• L112-170).

Field layouts keep the selected tab as shared state. They prefer the stable tab name when tabs reload or the layout remounts, then keep the numeric position within the current tab set. The layout also uses the explicit record name when available, which keeps edits bound to the displayed record while data is still loading (frontend/…/FieldLayout.vue• L45-63, frontend/…/FieldLayout.vue• L92-135, frontend/…/fieldLayoutTabState.test.js• L62-404).

References: frontend/…/ColumnSettings.vue• L17-90 frontend/…/ColumnSettings.vue• L183-312 frontend/…/FieldLayout.vue• L35-135 frontend/…/Field.vue• L400-573 frontend/…/Field.vue• L656-683 frontend/…/FieldLayoutDialog.vue• L102-211 frontend/…/SidePanelLayout.vue• L1-121 frontend/…/Lead.vue• L54-220 frontend/…/Deal.vue• L41-163 frontend/…/fieldLayoutTabState.test.js• L62-404

Saved view settings

Saved views preserve a way of working with an entity. A view records its type, filters, sort order, group field, list columns, or kanban settings. Standard views provide the base list, grouped, and kanban choices, while named views let users return to a tailored set of rules (crm/…/crm_view_settings.py• L46-84, frontend/…/ViewControls.vue• L646-768).

View changes have a clear scope. Changes to a standard view update the user's standard settings. Changes to a private named view update that view. Public and pinned views make useful arrangements easier to share or reach, but permissions still control who can edit or publish them (frontend/…/ViewControls.vue• L997-1005, frontend/…/ViewControls.vue• L1125-1296, crm/…/crm_view_settings.py• L130-162).

The URL carries the active view type and named view. This makes navigation from a row and return to the collection preserve the selected view. The shared controls reload when route or view settings change (frontend/…/ViewControls.vue• L386-417, frontend/…/ViewControls.vue• L1404-1417, frontend/…/Lead.vue• L406-433, frontend/…/Deal.vue• L549-575).

References: frontend/…/ViewControls.vue• L646-768 frontend/…/ViewControls.vue• L997-1005 frontend/…/ViewControls.vue• L1125-1296 frontend/…/Lead.vue• L406-433 frontend/…/Deal.vue• L549-575 crm/…/crm_view_settings.py• L46-162

Bulk actions

Bulk actions turn row selection into work on several records at once. The list shows an action banner after selection, and the entity-specific bulk action controller supplies common actions plus any actions contributed by CRM customizations (frontend/…/DealsListView.vue• L229-249, frontend/…/LeadsListView.vue• L233-253, frontend/…/ListBulkActions.vue• L163-245).

Common actions include editing a field, assigning records, clearing assignments, and deleting records. The bulk edit form loads only visible and editable fields, then chooses a value control that matches the selected field type before updating the selected records (frontend/…/EditValueModal.vue• L103-123, frontend/…/EditValueModal.vue• L245-278). Lead lists also support conversion to deals. A single delete can first inspect linked records, while a multi-record delete uses a bulk confirmation path. Successful actions clear the selection and reload the collection (frontend/…/ListBulkActions.vue• L71-159, frontend/…/ListBulkActions.vue• L220-230).

When a bulk status change marks a lead or deal as lost, the form also requires a lost reason. It requires lost notes when the reason is Other, so the batch action keeps the same business record as an individual status change (frontend/…/EditValueModal.vue• L145-182). Large updates can run in the background. The user gets a notice when the server enqueues the operation, while failed record names remain available for error handling (frontend/…/EditValueModal.vue• L184-223).

The same selection state can limit an export. The export path uses the active filters and sort order, or sends only the selected record names when the user does not export all records (frontend/…/ViewControls.vue• L593-644).

References: frontend/…/DealsListView.vue• L229-249 frontend/…/LeadsListView.vue• L233-253 frontend/…/ContactsListView.vue• L148-175 frontend/…/ListBulkActions.vue• L71-159 frontend/…/ListBulkActions.vue• L163-245 frontend/…/ViewControls.vue• L593-644 frontend/…/EditValueModal.vue• L69-224

Record detail interfaces

Record detail interfaces combine a focused identity area, editable fields, related records, and work activity. The detail page uses the same list components for related deals or contacts, which keeps navigation and field display familiar across collection and record contexts (frontend/…/Contact.vue• L17-156, frontend/…/Organization.vue• L23-170).

The detail structure varies by entity, but its responsibilities stay stable:

  • The header identifies the record and exposes entity actions.
  • The side panel shows the chosen field layout and supports permitted field changes.
  • The main tabs show activity or related records.
  • Related list rows open the related record when the relationship supports navigation.

Lead and deal pages add status controls and activity timelines. Contact and organization pages emphasize the side panel and related record tabs. This difference belongs to the entity workflow, while SidePanelLayout, FieldLayout, and the list views provide the shared record surfaces (frontend/…/Lead.vue• L10-70, frontend/…/Deal.vue• L10-61, frontend/…/Contact.vue• L110-156, frontend/…/Organization.vue• L112-170). Lead and deal breadcrumbs also retain the collection view, so a detail visit can return to the same work set (frontend/…/Lead.vue• L406-433, frontend/…/Deal.vue• L549-575).

The record detail flow is:

flowchart LR
    A[Collection row or kanban card] --> B[Record detail route]
    B --> C[Identity and actions]
    B --> D[Field layout side panel]
    B --> E[Activity or related record tabs]
    D --> F[Record update]
    E --> G[Related record view]

References: frontend/…/Lead.vue• L10-70 frontend/…/Deal.vue• L10-61 frontend/…/Contact.vue• L17-156 frontend/…/Organization.vue• L23-170 frontend/…/SidePanelLayout.vue• L1-28 frontend/…/Lead.vue• L406-433 frontend/…/Deal.vue• L549-575

Change checklist

When these files or sections are changed, remember to consider these:

  • When the shape of get_data changes, keep list rows, grouped data, kanban columns, counts, and view metadata aligned with the consumers in ViewControls and each entity list page.
  • When a field is added to filtering, grouping, sorting, or layout metadata, confirm that its field type has a matching input and display path.
  • When a kanban column field changes, clear or rebuild stored columns so old values do not remain as active board columns.
  • When a list row key or route changes, keep row selection, bulk actions, and the view query parameters tied to the same record identity.
  • When a website column changes, keep its label and icon actions from triggering the surrounding row navigation or filter action.
  • When saved view permissions or fields change, preserve the difference between standard, private, public, and pinned views.
  • When a field layout changes, check both inline side-panel edits and modal validation because they use the same layout model in different contexts.
  • When field controls run in a standalone form, keep direct field changes and document-backed changes aligned with the same visibility, dependency, and read-only rules.
  • When field layout tabs can reload or remount, keep the tab name and index models synchronized so the active field group stays selected.
  • When the list can switch between flat and grouped rows, keep scroll restoration attached to the active container rather than the initial one.
  • When bulk edit field metadata changes, keep the allowed field types and value controls aligned with the update payload sent for selected records.
  • When bulk status rules change, keep lost reason and lost notes validation aligned with the status type for both lead and deal records.
  • When a kanban card gains a link or card action, keep its click boundaries separate so navigation does not trigger the card action or drag update.
  • When an entity page adds a summary or custom action surface, keep its filters and selection state tied to the active view rather than a stale collection request.
  • When an entity page changes its allowed view types, keep the page renderer, saved view choices, and route state aligned.
  • When collection-to-detail navigation changes, preserve the active named view and view type in the detail route and breadcrumb.

Important failure modes

TriggerConsequenceGuard
A selected kanban card has no valid destination value.The card can move in the client without a valid record update.Keep kanban columns tied to supported link or select fields and route moves through the record update path.
A column is shown but its field is absent from returned rows.The list can display an empty or stale cell and grouping can lack its key.Keep requested rows in sync with displayed columns and the group field (crm/…/doc.py• L340-356).
A view stores a field that no longer exists or is hidden.The saved view can lose columns or fail to show expected data.Rebuild view fields from current metadata and remove hidden fields from the result (crm/…/doc.py• L349-353).
A website cell lets its click reach the row.A user can open a CRM record or apply a filter instead of the external site.Keep the shared website action separate and stop the cell event before opening the URL (frontend/…/WebsiteLink.vue• L1-15).
A bulk action succeeds but selection remains active.A later action can repeat work on records that already changed.Reload the list and clear selection after successful bulk work (frontend/…/ListBulkActions.vue• L220-230).
A public view is edited by a user without the required role.Shared users can see settings that the owner cannot safely maintain.Enforce view ownership and manager permissions before save, publish, pin, or delete (crm/…/crm_view_settings.py• L130-162).
A field layout marks a dependent field as required without its dependency value.A quick-entry or detail action cannot submit.Validate mandatory fields against field property overrides and the current record data (frontend/…/FieldLayoutDialog.vue• L184-211).
A field layout keeps only a numeric tab position after tabs reload.A remount can select a different tab when labels or tab order change.Persist the stable tab name and reconcile it with the current tab list (frontend/…/FieldLayout.vue• L92-124).
A field control uses the wrong record context for an edit.The change can update a new-document cache entry instead of the displayed record.Bind document-backed fields to the authoritative record name and use direct updates only for standalone forms (frontend/…/FieldLayout.vue• L48-63, frontend/…/Field.vue• L400-449).
Grouping changes the row shape without moving the scroll listener.Scroll position can stop saving or restore to the wrong container.Track the active flat or grouped container and remove the old listener before attaching the new one (frontend/…/ListRows.vue• L77-105).
Bulk edit exposes a field type without a matching value control.The update can send an empty or incorrectly typed value to selected records.Build the value control from current field metadata and normalize check values before update (frontend/…/EditValueModal.vue• L103-117, frontend/…/EditValueModal.vue• L163-183).
A bulk status change sets a lost status without its required reason or notes.Records can fail validation or lose the reason for the status change.Require lost reason and require notes when the reason is Other before submitting (frontend/…/EditValueModal.vue• L145-182).
A kanban card link or action allows events to reach the wrong surface.A click can navigate when the user intended a card action or can trigger an unintended update.Keep the card link as a separate layer and stop action events before they reach the card (frontend/…/KanbanView.vue• L83-146).
A collection route drops its active view when it opens a record.Returning from the record loses the user's list or board context.Pass the view name and view type through collection routes and detail breadcrumbs (frontend/…/Leads.vue• L327-332, frontend/…/Deals.vue• L304-309, frontend/…/Lead.vue• L406-433).
A page renders a view type that its controls do not allow.The route can show an unsupported or empty surface.Keep allowed view types and the page's list, group, and kanban branches in sync (frontend/…/Leads.vue• L19-35, frontend/…/Deals.vue• L19-35, frontend/…/Tasks.vue• L19-42).

Key files

FileWhy to read it
frontend/…/ViewControls.vueMain coordinator for collection data, view state, filters, sorting, grouping, columns, kanban updates, saved views, and export.
crm/…/doc.pyDefines the server-side result contract for list, grouped, and kanban data plus field choices and counts.
frontend/…/Leads.vueShows how one entity page connects shared controls to list, group summary, kanban, lead-specific rendering, creation, and record actions.
frontend/…/Deals.vueShows the deal collection pattern with shared controls, group summary, kanban rendering, quick actions, and record routes.
frontend/…/Tasks.vueShows a work-record collection that supports list and kanban views, task actions, related-record links, and task creation in a board column.
frontend/…/LeadsListView.vueShows the complete list interaction pattern with row navigation, inline filtering, website links, selection, and lead-specific bulk actions.
frontend/…/DealsListView.vueShows the deal list pattern with status, owner, organization, website links, like, selection, and bulk-action surfaces.
frontend/…/WebsiteLink.vueDefines the separate label and icon actions for opening website values from list rows.
frontend/…/ContactsListView.vueShows the shared list pattern for a simpler entity and its related-record use.
frontend/…/ListRows.vueShows the shared flat and grouped row surface with per-entity scroll state.
frontend/…/KanbanView.vueExplains board columns, card movement, card navigation, column hiding, and per-column loading.
frontend/…/KanbanSettings.vueDefines the board field, card title field, and card field choices.
frontend/…/ColumnSettings.vueDefines list field selection, order, labels, widths, and reset behavior.
frontend/…/Filter.vueDefines field-aware filter conditions, operators, value controls, and request values.
frontend/…/ListBulkActions.vueDefines shared multi-record actions and customization hooks.
frontend/…/EditValueModal.vueDefines field-aware value entry, status validation, and background handling for bulk updates to selected records.
frontend/…/SidePanelLayout.vueDefines the editable field summary used on record detail pages.
frontend/…/FieldLayout.vueDefines the shared tabs, sections, field layout model, record context, and stable selected-tab state.
frontend/…/Field.vueShows how field layouts apply record state, property rules, focused-form behavior, and external URL actions to detail and focused-form fields.
frontend/…/FieldLayoutDialog.vueShows how the layout model supports focused record forms and validation.
frontend/…/fieldLayoutTabState.test.jsDemonstrates that selected field-layout tabs survive remounts and tab reloads.
crm/…/crm_view_settings.pyDefines persistence, permissions, defaults, and synchronization for saved views.
frontend/…/Lead.vueShows a detail page with status, activity, collection context, and a field side panel.
frontend/…/Deal.vueShows a detail page with status, activity, collection context, related contacts, and a field side panel.
frontend/…/Organization.vueShows a detail page with field layout and related deal and contact lists.