Reload doctype in patch
This commit is contained in:
parent
0724449d0e
commit
5cbe3441e8
@ -4,5 +4,6 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for dt in ("Customer", "Customer Group", "Company"):
|
for dt in ("Customer", "Customer Group", "Company"):
|
||||||
|
frappe.reload_doctype(dt)
|
||||||
frappe.db.sql("""update `tab{0}` set credit_days_based_on='Fixed Days'
|
frappe.db.sql("""update `tab{0}` set credit_days_based_on='Fixed Days'
|
||||||
where ifnull(credit_days, 0) > 0""".format(dt))
|
where ifnull(credit_days, 0) > 0""".format(dt))
|
Loading…
x
Reference in New Issue
Block a user