[fix] [minor] onload post render also check for supplier
This commit is contained in:
parent
acf65a7225
commit
04638a5f77
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user