feat(Lead)!: send notifications to lead owner#53959
feat(Lead)!: send notifications to lead owner#53959barredterra wants to merge 1 commit intofrappe:developfrom
Conversation
📝 WalkthroughWalkthroughA new Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #53959 +/- ##
===========================================
- Coverage 79.05% 79.05% -0.01%
===========================================
Files 1159 1159
Lines 124753 124757 +4
===========================================
+ Hits 98627 98628 +1
- Misses 26126 26129 +3
🚀 New features to boost your workflow:
|
Summary
Implements
get_notification_emailon the Lead DocType (introduced in frappe/frappe#38365) so that email thread notifications are sent to the Lead Owner instead of the document creator.Previously, the user who created a Lead (
doc.owner) received all email thread notifications, even if a different user was assigned as Lead Owner. This is disruptive when one person creates leads but another person manages them.Now, if a Lead Owner is set, that user receives thread notifications. If no Lead Owner is set, it falls back to the document creator.
Depends on: frappe/frappe#38365
I would be happy with a backport to v16 or even v15, but it's a breaking change and easy to customize (via hooks) for companies who want it today.
Test plan
Ref: VOI-73