diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 74a814b20f0..ac783ff414b 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -987,7 +987,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe } var party = me.frm.doc[frappe.model.scrub(party_type)]; - if(party && me.frm.doc.company) { + if(party && me.frm.doc.company && !me.frm.doc.__onload?.load_after_mapping && !me.frm.doc.get(party_account_field)) { return frappe.call({ method: "erpnext.accounts.party.get_party_account", args: {