[minor] fixed patch update_companywise_payment_account
diff --git a/erpnext/patches/v5_0/update_companywise_payment_account.py b/erpnext/patches/v5_0/update_companywise_payment_account.py
index 71d7552..0c1705f 100644
--- a/erpnext/patches/v5_0/update_companywise_payment_account.py
+++ b/erpnext/patches/v5_0/update_companywise_payment_account.py
@@ -6,6 +6,7 @@
 
 def execute():
 	frappe.reload_doc('accounts', 'doctype', 'mode_of_payment')
+	frappe.reload_doc('accounts', 'doctype', 'mode_of_payment_account')
 
 	mode_of_payment_list = frappe.db.sql("""select name, default_account
 		from `tabMode of Payment`""", as_dict=1)
@@ -14,7 +15,7 @@
 		if d.get("default_account"):
 			parent_doc = frappe.get_doc("Mode of Payment", d.get("name"))
 
-			parent_doc.set("mode_of_payment_details",
+			parent_doc.set("accounts",
 				[{"company": frappe.db.get_value("Account", d.get("default_account"), "company"),
 				"default_account": d.get("default_account")}])
 			parent_doc.save()