mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 18:25:32 +00:00
[deadlock fix] Save if not set
This commit is contained in:
@@ -13,9 +13,9 @@ def get_slide_settings():
|
||||
|
||||
doc = frappe.get_doc("Setup Progress")
|
||||
item = [d for d in doc.get("actions") if d.action_name == "Set Sales Target"][0]
|
||||
item.action_document = company
|
||||
item.save()
|
||||
doc.save()
|
||||
if not item.action_document:
|
||||
item.action_document = company
|
||||
doc.save()
|
||||
|
||||
# Initial state of slides
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user