diff --git a/erpnext/patches/v6_0/default_activity_rate.py b/erpnext/patches/v6_0/default_activity_rate.py index 90a7a8c338..44fda3415c 100644 --- a/erpnext/patches/v6_0/default_activity_rate.py +++ b/erpnext/patches/v6_0/default_activity_rate.py @@ -1,6 +1,8 @@ import frappe def execute(): + frappe.reload_doc("projects", "doctype", "activity_cost") + for cost in frappe.db.get_list("Activity Cost", filters = {"employee": ""}, fields = ("name", "activity_type", "costing_rate", "billing_rate")): activity_type = frappe.get_doc("Activity Type", cost.activity_type)