[minor] [patch] reload activity cost in default_activity_rate
This commit is contained in:
parent
1fef2fad2d
commit
b74265c842
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user