Merge pull request #8816 from rohitwaghchaure/fixed_deadlock_while_opening_company_record_v12

fix: deadlock issue on load of company
This commit is contained in:
mergify[bot] 2019-11-21 07:56:50 +00:00 committed by GitHub
commit 625eedf7a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,6 @@ def get_monthly_goal_graph_data(title, doctype, docname, goal_value_field, goal_
if filter_str:
doc_filter += ' and ' + filter_str if doc_filter else filter_str
month_to_value_dict = get_monthly_results(goal_doctype, goal_field, date_field, doc_filter, aggregation)
frappe.db.set_value(doctype, docname, goal_history_field, json.dumps(month_to_value_dict))
month_to_value_dict[current_month_year] = current_month_value