update install
This commit is contained in:
parent
b400be3f1a
commit
15f4d42e07
1 changed files with 30 additions and 15 deletions
|
|
@ -22,7 +22,7 @@ def after_install():
|
|||
check_and_create_holiday_list()
|
||||
create_project_templates()
|
||||
create_task_types()
|
||||
create_tasks()
|
||||
# create_tasks()
|
||||
create_bid_meeting_note_form_templates()
|
||||
build_frontend()
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ def after_migrate():
|
|||
check_and_create_holiday_list()
|
||||
# create_project_templates()
|
||||
create_task_types()
|
||||
# create_tasks
|
||||
# create_tasks()
|
||||
# create_bid_meeting_note_form_templates()
|
||||
|
||||
# update_address_fields()
|
||||
|
|
@ -1039,8 +1039,9 @@ def create_task_types():
|
|||
"base_date": "Start",
|
||||
"offset_days": 7,
|
||||
"offset_direction": "Before",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Scheduled",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
},
|
||||
{
|
||||
"title": "Permit",
|
||||
|
|
@ -1049,8 +1050,9 @@ def create_task_types():
|
|||
"base_date": "Start",
|
||||
"offset_days": 7,
|
||||
"offset_direction": "Before",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Scheduled",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
},
|
||||
{
|
||||
"title": "1/2 Down Payment",
|
||||
|
|
@ -1058,6 +1060,7 @@ def create_task_types():
|
|||
"description": "Collect half down payment on project creation.",
|
||||
"calculate_from": "Project",
|
||||
"trigger": "Created",
|
||||
"triggering_doctype": "Project",
|
||||
"no_due_date": 1,
|
||||
},
|
||||
{
|
||||
|
|
@ -1067,7 +1070,8 @@ def create_task_types():
|
|||
"base_date": "Start",
|
||||
"offset_days": 1,
|
||||
"offset_direction": "Before",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
"trigger": "Scheduled",
|
||||
},
|
||||
{
|
||||
|
|
@ -1077,7 +1081,8 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 5,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
},
|
||||
{
|
||||
|
|
@ -1087,7 +1092,8 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 0,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
},
|
||||
{
|
||||
|
|
@ -1097,8 +1103,9 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 5,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
},
|
||||
{
|
||||
"title": "15 Day Warranty Follow-Up",
|
||||
|
|
@ -1107,8 +1114,9 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 15,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
},
|
||||
{
|
||||
"title": "30 Day Warranty Check",
|
||||
|
|
@ -1117,7 +1125,8 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 30,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"triggering_doctype": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
},
|
||||
{
|
||||
|
|
@ -1127,8 +1136,9 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 30,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
},
|
||||
{
|
||||
"title": "60 Day Late Payment Notice",
|
||||
|
|
@ -1137,8 +1147,10 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 60,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
|
||||
},
|
||||
{
|
||||
"title": "80 Day Lien Notice",
|
||||
|
|
@ -1147,8 +1159,9 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 80,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
},
|
||||
{
|
||||
"title": "365 Day Warranty Call / Walk",
|
||||
|
|
@ -1157,8 +1170,9 @@ def create_task_types():
|
|||
"base_date": "Completion",
|
||||
"offset_days": 365,
|
||||
"offset_direction": "After",
|
||||
"calculate_from": "Service Appointment",
|
||||
"calculate_from": "Service Address 2",
|
||||
"trigger": "Completed",
|
||||
"triggering_doctype": "Service Address 2"
|
||||
},
|
||||
]
|
||||
|
||||
|
|
@ -1175,9 +1189,10 @@ def create_task_types():
|
|||
"base_date": task_type.get("base_date"),
|
||||
"offset_days": task_type.get("offset_days", 0),
|
||||
"offset_direction": task_type.get("offset_direction"),
|
||||
"calculate_from": task_type.get("calculate_from", "Service Appointment"),
|
||||
"calculate_from": task_type.get("calculate_from", "Service Address 2"),
|
||||
"trigger": task_type["trigger"],
|
||||
"no_due_date": task_type.get("no_due_date", 0),
|
||||
"triggering_doctype": task_type.get("triggering_doctype", "Service Address 2")
|
||||
})
|
||||
|
||||
doc.insert(ignore_permissions=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue