fix: remove proprietorship and update it with individual (backport #42307)

This commit is contained in:
Sanket322
2024-07-12 18:58:14 +05:30
committed by Smit Vora
parent 2ce7300c3c
commit 8c1f6196b8
4 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
import frappe
def execute():
for doctype in ["Customer", "Supplier"]:
field = doctype.lower() + "_type"
frappe.db.set_value(doctype, {field: "Proprietorship"}, field, "Individual")