AttributeError: module 'erpnext' has no attribute 'get_party_account_type' on payment reconcilation

On payment reconcilation geting error :

AttributeError: module ‘erpnext’ has no attribute ‘get_party_account_type’ on payment reconcilation

Versions:
ERPNext: v12.29.0 (HEAD)
Frappe Framework: v12.26.0 (HEAD)

Hosted on frappe