fix: set parent_project when creating a new timesheet (#35607)

fix "When Creating a new Timesheet from an Task - parent_project is empty" #35578
This commit is contained in:
Christian Werner 2023-06-08 16:30:40 +02:00 committed by GitHub
parent b91bb17779
commit 65b2e1fc33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,7 @@ def set_tasks_as_overdue():
@frappe.whitelist() @frappe.whitelist()
def make_timesheet(source_name, target_doc=None, ignore_permissions=False): def make_timesheet(source_name, target_doc=None, ignore_permissions=False):
def set_missing_values(source, target): def set_missing_values(source, target):
target.parent_project = source.project
target.append( target.append(
"time_logs", "time_logs",
{ {