fix: lock timeout exceeded
This commit is contained in:
parent
ac7f1cbd87
commit
ac16f3b71f
@ -4,11 +4,5 @@ def execute():
|
|||||||
doc = frappe.get_doc("Accounts Settings")
|
doc = frappe.get_doc("Accounts Settings")
|
||||||
discount_account = doc.enable_discount_accounting
|
discount_account = doc.enable_discount_accounting
|
||||||
if discount_account:
|
if discount_account:
|
||||||
buying_settings = frappe.get_doc("Buying Settings", "Buying Settings")
|
for doctype in ["Buying Settings", "Selling Settings"]:
|
||||||
selling_settings = frappe.get_doc("Selling Settings", "Selling Settings")
|
doc = frappe.db.set_value(doctype, doctype, 'enable_discount_accounting', 1, update_modified=False)
|
||||||
|
|
||||||
buying_settings.enable_discount_accounting = 1
|
|
||||||
selling_settings.enable_discount_accounting = 1
|
|
||||||
|
|
||||||
buying_settings.save()
|
|
||||||
selling_settings.save()
|
|
Loading…
x
Reference in New Issue
Block a user