Skip to content

Commit

Permalink
Merge pull request #32 from rtCamp/fix/install-hook
Browse files Browse the repository at this point in the history
fix: add_todo_custom_title_field in install hooks
  • Loading branch information
Aryan20 authored Nov 21, 2024
2 parents 14a1059 + 60e716f commit 58fd9e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next_crm/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def add_email_template_custom_fields():
frappe.clear_cache(doctype="Email Template")

def add_todo_custom_title_field():
if not frappe.db.field_exists("Custom Field", {"name": "ToDo-custom_title"}):
if not frappe.db.exists("Custom Field", {"label": "Title"}) or frappe.db.exists(
"DocField", {"label": "Title"}
):
custom_fields = {
"ToDo": [
{
Expand Down

0 comments on commit 58fd9e7

Please sign in to comment.