[fix] [patch] remove default activity type "Planning"
This commit is contained in:
parent
da43539c53
commit
5b9c6e7fa6
@ -2,7 +2,7 @@ import frappe
|
||||
|
||||
from erpnext.manufacturing.doctype.production_order.production_order import make_time_sheet, add_timesheet_detail
|
||||
|
||||
def execute():
|
||||
def execute():
|
||||
for data in frappe.get_all('Time Log', fields=["*"],
|
||||
filters = [["docstatus", "<", "2"]]):
|
||||
time_sheet = make_time_sheet(data.production_order)
|
||||
@ -18,9 +18,9 @@ def get_timesheet_data(data):
|
||||
'hours': data.hours,
|
||||
'to_time': data.to_time,
|
||||
'project': data.project,
|
||||
'activity_type': data.activity_type or "Planning",
|
||||
'activity_type': data.activity_type,
|
||||
'operation': data.operation,
|
||||
'operation_id': data.operation_id,
|
||||
'workstation': data.workstation,
|
||||
'completed_qty': data.completed_qty
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user