diff --git a/public/js/transaction.js b/public/js/transaction.js index 6b777204e72..e948829af9b 100644 --- a/public/js/transaction.js +++ b/public/js/transaction.js @@ -39,7 +39,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({ onload_post_render: function() { var me = this; if(this.frm.doc.__islocal && this.frm.doc.company && !this.frm.doc.is_pos) { - if(!this.frm.doc.customer) { + if(!this.frm.doc.customer || !this.frm.doc.supplier) { return this.frm.call({ doc: this.frm.doc, method: "onload_post_render",