Update fix_account_master_type.py
This commit is contained in:
parent
e7f7416190
commit
d91cefb23d
@ -6,7 +6,7 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for d in frappe.db.sql("""select name from `tabAccount`
|
for d in frappe.db.sql("""select name from `tabAccount`
|
||||||
where ifnull(master_type, '') not in ('Customer', 'Supplier', 'Employee', '')"""):
|
where ifnull(master_type, '') not in ('Customer', 'Supplier', 'Employee', '') and docstatus=0"""):
|
||||||
ac = frappe.get_doc("Account", d[0])
|
ac = frappe.get_doc("Account", d[0])
|
||||||
ac.master_type = None
|
ac.master_type = None
|
||||||
ac.save()
|
ac.save()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user