diff --git a/custom_ui/fixtures/project_template.json b/custom_ui/fixtures/project_template.json new file mode 100644 index 0000000..b6b8f5b --- /dev/null +++ b/custom_ui/fixtures/project_template.json @@ -0,0 +1,55 @@ +[ + { + "calendar_color": null, + "company": "Sprinklers Northwest", + "docstatus": 0, + "doctype": "Project Template", + "modified": "2026-01-27 09:16:15.614554", + "name": "SNW Install", + "project_type": "External", + "tasks": [ + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Send customer 3-5 day window for start date", + "task": "TASK-2025-00001" + }, + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "811/Locate call in", + "task": "TASK-2025-00002" + }, + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Permit(s) call in and pay", + "task": "TASK-2025-00003" + }, + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Primary Job", + "task": "TASK-2025-00004" + }, + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Hydroseeding", + "task": "TASK-2025-00005" + }, + { + "parent": "SNW Install", + "parentfield": "tasks", + "parenttype": "Project Template", + "subject": "Curbing", + "task": "TASK-2025-00006" + } + ] + } +] \ No newline at end of file diff --git a/custom_ui/hooks.py b/custom_ui/hooks.py index d232cac..c171720 100644 --- a/custom_ui/hooks.py +++ b/custom_ui/hooks.py @@ -214,6 +214,9 @@ fixtures = [ ["name", "in", ["Customer Invoice"]] ] }, + { + "dt": "Project Template" + }, # These don't have reliable flags → export all { "dt": "Custom Field",