[deadlock fix] Save if not set (#12896)
This commit is contained in:
parent
5a91989665
commit
d53b149828
@ -13,8 +13,8 @@ def get_slide_settings():
|
|||||||
|
|
||||||
doc = frappe.get_doc("Setup Progress")
|
doc = frappe.get_doc("Setup Progress")
|
||||||
item = [d for d in doc.get("actions") if d.action_name == "Set Sales Target"][0]
|
item = [d for d in doc.get("actions") if d.action_name == "Set Sales Target"][0]
|
||||||
|
if not item.action_document:
|
||||||
item.action_document = company
|
item.action_document = company
|
||||||
item.save()
|
|
||||||
doc.save()
|
doc.save()
|
||||||
|
|
||||||
# Initial state of slides
|
# Initial state of slides
|
||||||
|
Loading…
x
Reference in New Issue
Block a user