Skip to content

Commit

Permalink
fix: opportunity list doesn't show assigned user
Browse files Browse the repository at this point in the history
Because `db_update` is performed `_assign` property is not updated and
hence lead -> opportunity conversion makes it disappear from list view.

Steps to reproduce:

1. Create lead
2. Assign anyone
3. Create opportunity from lead.
4. Form view shows assigned user, list view wont.
  • Loading branch information
ankush committed Nov 25, 2022
1 parent 722e29d commit 8d63c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/crm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def link_open_tasks(ref_doctype, ref_docname, doc):
todo_doc = frappe.get_doc("ToDo", todo.name)
todo_doc.reference_type = doc.doctype
todo_doc.reference_name = doc.name
todo_doc.db_update()
todo_doc.save()


def link_open_events(ref_doctype, ref_docname, doc):
Expand Down

0 comments on commit 8d63c52

Please sign in to comment.