fix: Demo Script
This commit is contained in:
@@ -39,61 +39,4 @@ def make_project(current_date):
|
||||
"doctype": "Project",
|
||||
"project_name": "New Product Development " + current_date.strftime("%Y-%m-%d"),
|
||||
})
|
||||
project.set("tasks", [
|
||||
{
|
||||
"title": "Review Requirements",
|
||||
"start_date": frappe.utils.add_days(current_date, 10),
|
||||
"end_date": frappe.utils.add_days(current_date, 11)
|
||||
},
|
||||
{
|
||||
"title": "Design Options",
|
||||
"start_date": frappe.utils.add_days(current_date, 11),
|
||||
"end_date": frappe.utils.add_days(current_date, 20)
|
||||
},
|
||||
{
|
||||
"title": "Make Prototypes",
|
||||
"start_date": frappe.utils.add_days(current_date, 20),
|
||||
"end_date": frappe.utils.add_days(current_date, 30)
|
||||
},
|
||||
{
|
||||
"title": "Customer Feedback on Prototypes",
|
||||
"start_date": frappe.utils.add_days(current_date, 30),
|
||||
"end_date": frappe.utils.add_days(current_date, 40)
|
||||
},
|
||||
{
|
||||
"title": "Freeze Feature Set",
|
||||
"start_date": frappe.utils.add_days(current_date, 40),
|
||||
"end_date": frappe.utils.add_days(current_date, 45)
|
||||
},
|
||||
{
|
||||
"title": "Testing",
|
||||
"start_date": frappe.utils.add_days(current_date, 45),
|
||||
"end_date": frappe.utils.add_days(current_date, 60)
|
||||
},
|
||||
{
|
||||
"title": "Product Engineering",
|
||||
"start_date": frappe.utils.add_days(current_date, 45),
|
||||
"end_date": frappe.utils.add_days(current_date, 55)
|
||||
},
|
||||
{
|
||||
"title": "Supplier Contracts",
|
||||
"start_date": frappe.utils.add_days(current_date, 55),
|
||||
"end_date": frappe.utils.add_days(current_date, 70)
|
||||
},
|
||||
{
|
||||
"title": "Design and Build Fixtures",
|
||||
"start_date": frappe.utils.add_days(current_date, 45),
|
||||
"end_date": frappe.utils.add_days(current_date, 65)
|
||||
},
|
||||
{
|
||||
"title": "Test Run",
|
||||
"start_date": frappe.utils.add_days(current_date, 70),
|
||||
"end_date": frappe.utils.add_days(current_date, 80)
|
||||
},
|
||||
{
|
||||
"title": "Launch",
|
||||
"start_date": frappe.utils.add_days(current_date, 80),
|
||||
"end_date": frappe.utils.add_days(current_date, 90)
|
||||
},
|
||||
])
|
||||
project.insert()
|
||||
|
||||
Reference in New Issue
Block a user