diff --git a/erpnext/patches/v7_0/convert_timelog_to_timesheet.py b/erpnext/patches/v7_0/convert_timelog_to_timesheet.py index 9894c2a6d3..4b6cf74535 100644 --- a/erpnext/patches/v7_0/convert_timelog_to_timesheet.py +++ b/erpnext/patches/v7_0/convert_timelog_to_timesheet.py @@ -16,7 +16,7 @@ def execute(): else: company = frappe.db.get_single_value('Global Defaults', 'default_company') - time_sheet = make_timesheet(data.production_order) + time_sheet = make_timesheet(data.production_order, company) args = get_timelog_data(data) add_timesheet_detail(time_sheet, args) if data.docstatus == 2: