[deadlock fix] Save if not set (#12896)
This commit is contained in:
parent
5a91989665
commit
d53b149828
@ -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 [
|
||||
|
Loading…
x
Reference in New Issue
Block a user