mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
[fix] [minor] onload post render also check for supplier
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user