Don't run company trigger on amendment
This commit is contained in:
parent
957971eb1d
commit
b739264243
@ -26,7 +26,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
|
||||
me.frm.set_value(fieldname, value);
|
||||
});
|
||||
|
||||
if(this.frm.doc.company) {
|
||||
if(this.frm.doc.company && !this.frm.doc.amended_from) {
|
||||
cur_frm.script_manager.trigger("company");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user