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 / record-productivity-workflows

Record productivity workflows

Record productivity workflows give CRM users one place to plan work, capture context, communicate, and keep files around a lead or deal. The record page connects its activity history with notes, tasks, events, comments, attachments, calls, email, and optional WhatsApp messages so that work stays tied to the customer record.

Record workspace

The record workspace is the main working surface for a CRM Lead or CRM Deal. It presents the record’s business data beside a set of activity views, while quick actions let a user start the next piece of work without leaving the record. See CRM record management for the wider record model and Lead and deal lifecycle for status-driven work.

The activity views cover these work areas:

  • Activity: A time-ordered history of record creation, field changes, comments, email, calls, and file actions.
  • Emails and Comments: Separate views for external messages and internal discussion.
  • Events: Meetings and other scheduled time on the record.
  • Tasks and Notes: Assigned work and durable working context.
  • Attachments: Files linked to the record.
  • Calls: Manual call logs and telephony activity.
  • WhatsApp: A message surface when WhatsApp is enabled.

The shared activity header turns these views into work entry points. It offers direct actions for the selected view and a general New menu for common work, while optional call and WhatsApp actions appear only when their services and record tabs are available. A view that owns its own pane can also own its controls instead of using the shared actions.

Users can keep a preferred tab for each record type. Links can also open a record on a particular activity view, which supports hand-off from notifications and list views.

References: frontend/…/Lead.vue• L50-67 frontend/…/Lead.vue• L423-480 frontend/…/Deal.vue• L45-63 frontend/…/Deal.vue• L571-628 frontend/…/ActivityHeader.vue• L1-76 frontend/…/Activities.vue• L1-12

Activity history

The activity history is the record’s shared audit and work stream. It combines changes to the record with related conversations and work items, then presents the result as a readable timeline. This lets an engineer or sales user see not only the current value of a record but also the work that led to it.

The history draws from several kinds of record-linked information:

  • Record creation and meaningful field changes.
  • Internal comments and their files.
  • Email communications and automated messages.
  • Attachment add and remove actions.
  • Calls linked directly to the record.
  • Notes and tasks linked directly to the record.
  • Notes and tasks linked through a call log.

The full activity view is ordered by time. Dedicated views use the same source but show only one work area. Field changes made by the same person can appear as one grouped timeline entry, which keeps routine edits from hiding important work.

A user must have read access to the record to load its activity history. For a deal that came from a lead, the deal history remains available when the user cannot read the source lead; the system omits the lead history instead of failing the whole deal timeline.

This diagram shows how a record and its related work become the views that users read.

flowchart LR
    R[CRM Lead or CRM Deal] --> H[Record history]
    R --> W[Linked work]
    C[Comments and email] --> H
    F[Files and attachment actions] --> H
    L[Call logs] --> H
    W --> N[Notes]
    W --> T[Tasks]
    W --> E[Events]
    H --> A[Activity view]
    H --> S[Focused views]
    N --> S
    T --> S
    E --> S
    F --> S

The activity surface also updates its record view when comments or communications change and can receive new WhatsApp messages while the record is open. It sorts the main timeline by the user’s chosen direction, while focused work lists use their own recent-change order. Empty states explain the next useful action for each view.

References: crm/…/activities.py• L13-27 crm/…/activities.py• L52-67 crm/…/activities.py• L177-192 crm/…/activities.py• L195-339 crm/…/activities.py• L448-553 frontend/…/Activities.vue• L695-727 frontend/…/Activities.vue• L748-812 frontend/…/Activities.vue• L831-884

Notes and tasks

Notes and tasks turn record context into reusable knowledge and planned action. Both can point to a CRM record, and both appear on that record as focused activity views. They also have global pages for users who need to review work across many records.

Work itemPurposeMain work state
NoteKeep durable text such as research, call context, or a decision.Title, rich content, and an optional record link.
TaskGive a person a clear next action.Title, description, priority, start and due dates, assignee, status, and an optional record link.

Tasks move through Backlog, Todo, In Progress, Done, or Canceled. A task can have a start date, a timed due date, or an all-day due date. The record task view lets a user change status or delete a task, with confirmation before deletion. This keeps small work updates close to the record instead of forcing the user into a separate queue.

Notes can be pinned to the top of the note view without changing their last-edited time. Pin and unpin actions remain visible in the record timeline. A note linked to a lead or deal can mention CRM users; a new mention creates a notification that links back to both the note and its record.

Tasks support list and kanban views. The global task view lets users create, open, edit, and delete tasks, with a confirmation step before deletion. A task can open the lead or deal that it references, so a user can move from a work queue back to the customer context. Creating or editing a task from a record keeps that record as the task’s reference. After a record task or note is saved, the record refreshes and can move to the related focused view.

Open tasks linked to a lead or deal can act as follow-ups. A timed follow-up with an assignee can remind that person shortly before its due time. All-day follow-ups do not use that short-term reminder. Due and overdue checks use the assignee’s time zone, while an all-day due date remains tied to its calendar day.

Task planning can also start during a call. The call workflow can capture the task description, status, priority, assignee, and due date so that spoken work becomes a tracked next step.

Assigning a task creates a user assignment. Changing the task assignee moves the assignment to the new user. Assignment notices can take the user back to the linked record, which keeps task work connected to the customer workflow.

References: crm/…/fcrm_note.py• L44-69 crm/…/fcrm_note.py• L105-131 crm/…/crm_task.json• L23-105 crm/…/crm_task.py• L36-66 crm/…/rules.py• L13-109 crm/…/reminders.py• L22-77 frontend/…/NoteArea.vue• L1-70 frontend/…/TaskArea.vue• L1-88 frontend/…/AllModals.vue• L36-112 frontend/…/Tasks.vue• L30-39 frontend/…/Tasks.vue• L335-373 frontend/…/Tasks.vue• L376-391 frontend/…/TaskPanel.vue• L2-71 crm/…/todo.py• L7-17

Comments and email

Comments and email support two different audiences around the same record. Comments provide internal discussion, while email sends a message to people outside the CRM and preserves the exchange in the record history. Both surfaces support rich content and file attachments.

Comments can mention CRM users. A mention creates a CRM notification that points to both the comment and the record. The comment author can edit or delete the comment, while the timeline keeps the comment’s author and time visible.

Email supports new messages, replies, and reply-all actions. The composer uses the record’s contact address as a starting point when one exists. Sent messages retain sender, recipients, copy fields, delivery state, message content, and attachments, so users can follow the communication outcome from the record.

Users can schedule an email or create a follow-up task from an email. A scheduled email stays in the record timeline until it is sent, edited, or deleted. Editing moves it back into the composer, while sending it now bypasses the planned send time. Follow-up actions offer quick due-date choices and a form for a custom choice.

The composer keeps drafts and selected files separate for each user and record. Sending clears that working state. Discarding an unfinished message also removes its temporary uploaded files.

References: frontend/…/CommunicationArea.vue• L1-85 frontend/…/CommunicationArea.vue• L206-312 frontend/…/CommentArea.vue• L1-65 frontend/…/CommentArea.vue• L77-145 crm/…/comment.py• L16-57 crm/…/comment.py• L70-128 frontend/…/EmailArea.vue• L1-119 frontend/…/EmailArea.vue• L121-207

Calendar events

Calendar events reserve time for work related to a CRM record. A record can show its upcoming events in the Events view, while the global calendar lets a user review events by day, week, or month. The same event can be found through its record link or through its owner and participants.

An event can contain a title, date and time, all-day setting, visibility, location, description, color, attendees, and reminder settings. Users can create, edit, duplicate, and delete events. The event form prevents an end time that is not after the start time for timed events.

Events can notify the owner and participants by email or by an in-app notification. Individual events can define reminders. When they do not, CRM settings provide defaults for timed and all-day events. Cancelled events do not produce reminders.

This diagram shows the event path from record planning to participant reminders.

sequenceDiagram
    participant U as CRM user
    participant R as Record
    participant E as Event
    participant P as Participants
    participant N as Reminder service

    U->>R: Schedule an event
    R->>E: Save record link and event details
    U->>P: Add attendees
    U->>E: Add custom reminders or use defaults
    N->>E: Check upcoming or active events
    N-->>P: Send email or in-app reminder

References: frontend/…/CalendarEventPanel.vue• L45-260 frontend/…/CalendarEventPanel.vue• L263-460 frontend/…/EventModal.vue• L39-195 frontend/…/EventModal.vue• L372-452 frontend/…/event.js• L10-54 frontend/…/Calendar.vue• L21-41 crm/…/event.py• L23-89 crm/…/event.py• L139-218

Attachments and files

Attachments keep source material close to the record or conversation that needs it. Users can upload files from the record header, the Attachments view, the email composer, or the comment composer. A file can be opened from the record and can be marked public or private.

The record’s attachment view shows file type, name, size, time, and privacy state. Users can change privacy or delete a file. Comments and email show their own attached files in context, while record uploads appear in the record’s file list and in the activity history as file actions.

The upload flow accepts files, web links, and camera captures where the client supports them. Privacy is chosen before attachment, which matters because the same file may be used for internal work or shared in communication.

References: frontend/…/FilesUploader.vue• L1-89 frontend/…/FilesUploader.vue• L145-224 frontend/…/AttachmentArea.vue• L1-73 crm/…/activities.py• L357-375 crm/…/activities.py• L640-661

Calls and messaging

Calls and messaging add live communication channels to the record workflow. A user can log a call as a work record or start a telephony call when a provider is enabled. Call history shows direction, people, time, status, duration, and an available recording. The record header keeps logging and making a call as separate actions so a manual record is available even when live calling is not.

The optional WhatsApp surface uses the same record reference as the other communication views. It loads messages for the record, receives updates while the record is open, and can send a new message or a configured template. The tab and its entry action are shown only when WhatsApp is enabled and the record view exposes that tab.

These channels complement email and comments rather than replacing them. Email preserves a written exchange, comments preserve internal decisions, calls preserve spoken contact, and WhatsApp preserves an external chat thread.

References: frontend/…/ActivityHeader.vue• L25-76 frontend/…/ActivityHeader.vue• L105-187 frontend/…/CallArea.vue• L23-89 crm/…/crm_call_log.json• L33-147 frontend/…/Activities.vue• L527-570 frontend/…/Activities.vue• L729-821 frontend/…/Lead.vue• L471-478

Assignments and notifications

Assignments show who owns the next step and who must act. Lead and deal records can have multiple assignees, while one record-owner field identifies the current owner. Adding an assignee can set that owner. Removing the current owner moves ownership to another assignee when one exists; otherwise the owner is cleared.

Task assignments are separate from lead and deal ownership. A task has its own assignee, and assignment or cancellation creates a notice for that user. Mentions in comments use the same notification area, which gives users one place to find work that needs attention.

Notifications link back to the right context. A lead or deal assignment opens that record. A task assignment opens the task’s referenced lead or deal. A comment mention opens the comment and its parent record.

References: frontend/…/AssignTo.vue• L32-97 crm/…/todo.py• L19-68 crm/…/todo.py• L126-131 crm/…/comment.py• L21-57 crm/…/crm_notification.py• L30-83

Productivity work depends on the people and organizations connected to a record. Leads expose direct contact actions. Deals use their linked organization and contacts for email, calls, event attendees, and follow-up work.

Use Contacts and organizations to understand the customer context that supplies these addresses, phone numbers, and relationships. Use CRM record management for record permissions, fields, and links outside the productivity surfaces. For shared notification and activity behavior, see Activities and notifications. For the record’s broader work stages, see Lead and deal lifecycle. For communication behavior across channels, see Customer communications.

References: frontend/…/Lead.vue• L124-180 frontend/…/Deal.vue• L72-135 frontend/…/Deal.vue• L684-750

Change checklist

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

  • Keep the record reference consistent across notes, tasks, events, call logs, comments, communications, and files. A mismatch removes the item from the record’s focused views.
  • Keep the activity response shape aligned with the tab filters. The activity view expects separate collections for history, calls, notes, tasks, and attachments.
  • When changing activity permissions, preserve the difference between access to a deal and access to its source lead. A denied source lead must not hide readable deal work.
  • When changing task assignment behavior, review both the task’s assignee and the lead or deal owner. They are related but are not the same field.
  • When changing task due-date rules, keep timed dates and all-day dates separate. Check the assignee’s time zone and the reminder window together.
  • When changing task actions in list or kanban views, keep edit, delete confirmation, and post-delete reload behavior aligned so the work queue shows the current state.
  • When changing scheduled email actions, preserve the distinction between sending now, editing back into the composer, and deleting without sending.
  • When changing comment content or editor markup, preserve mention data and attachment links. Mentions drive notifications and files are attached to the comment after creation.
  • When changing event reminders, review both per-event reminders and CRM-wide defaults. All-day events use a separate default set.
  • When changing file privacy or upload paths, check record files, comment files, and email files. They can have different parent records and sharing needs.
  • When adding a communication channel, update its availability rule, record tab, activity loading path, and notification or live-update behavior together.
  • When changing activity empty states or labels, keep the user-facing strings translatable so each focused view remains clear in every supported language.

Important failure modes

TriggerConsequenceGuard
A note, task, event, or call uses the wrong reference document nameThe work item does not appear on the expected lead or dealSet the reference type and reference name from the open record when creating the item
A readable deal also depends on an unreadable source lead and the activity loader treats the lead denial as fatalThe deal’s own activity and comments appear to be missingKeep deal access separate from source-lead access and omit only the unreadable lead history
A task assignment changes without updating assignment noticesThe new owner may not know about the work, or the old owner may keep a stale noticeTreat assignment changes and notification links as one contract
An all-day task is handled as a timed instant, or a timed task is checked in system time instead of the assignee’s time zoneDue, overdue, or reminder views show the task on the wrong dayApply the separate all-day and timed rules through the assignee’s local day
A follow-up reminder is sent again without tracking the due date that was remindedThe assignee receives duplicate notices or misses a rescheduled taskRecord the reminded due date and allow a new reminder only after the due date changes
A note mention is saved without the linked note and record contextThe mentioned user receives no useful route back to the workKeep note references and mention extraction intact through save
A user deletes a task without a confirmed action or the task list does not reload after deletionWork can be removed by mistake or the queue can show stale dataUse the linked-document delete confirmation and reload the task resource after success
A scheduled email is edited while another draft is openThe user’s draft can be overwritten or the scheduled message can be lostRequire the current draft to be sent or discarded before restoring the scheduled email
An event ends at or before its startThe event cannot represent a valid time slot and reminders can be wrongValidate the time range before saving
A private file is treated as a public fileInternal source material can be exposed through a linkPreserve the file privacy choice during upload and later changes
The activity loader returns incomplete collectionsA focused tab looks empty even though related work existsPreserve the history, calls, notes, tasks, and attachments response groups

Key files

FileWhy to read it
frontend/…/Lead.vueShows the record-level workspace and available productivity tabs for leads.
frontend/…/Deal.vueShows the same workspace for deals and its organization and contact context.
frontend/…/Activities.vueExplains how activity data becomes the timeline and focused views. It also shows live refresh, WhatsApp availability, custom panes, and translated empty states.
crm/…/activities.pyDefines the high-level record activity and linked-work data returned to the client.
frontend/…/ActivityHeader.vueShows how each activity view exposes the actions that create related work and how optional channels are gated.
frontend/…/AllModals.vueConnects record actions to event, note, task, and call creation while preserving the record link and focused-view refresh.
frontend/…/CommentArea.vueShows the comment display and author-only edit and delete actions.
frontend/…/CommunicationArea.vueShows the shared email and comment compose surface.
frontend/…/EmailArea.vueShows email replies, scheduled-email actions, and follow-up creation from the record timeline.
frontend/…/CalendarEventPanel.vueShows the calendar event details, record link, attendee state, and edit surface.
frontend/…/EventModal.vueShows the event information and reminder model.
frontend/…/Calendar.vueShows the global event planning surface.
frontend/…/FilesUploader.vueShows the common file attachment flow and privacy choices.
frontend/…/AssignTo.vueShows how record assignees relate to the single record owner.
frontend/…/NoteArea.vueShows note actions such as pinning, copying a link, editing, and deletion.
frontend/…/TaskArea.vueShows focused task status changes and deletion from a record.
crm/…/fcrm_note.pyShows note mention notifications and timeline history for pin changes.
crm/…/rules.pyDefines the shared due, overdue, all-day, and user-time-zone rules for open follow-up tasks.
crm/…/reminders.pyShows when timed follow-up reminders are sent and how they link back to the record.
frontend/…/Tasks.vueShows global task list and kanban work queues, record links, and task actions.
frontend/…/TaskPanel.vueShows task capture during a telephony workflow.
crm/…/todo.pyShows assignment notices and the link from task work back to a CRM record.