Don't run company trigger on amendment

This commit is contained in:
nabinhait 2014-07-28 14:55:08 +05:30
parent 957971eb1d
commit b739264243

View File

@ -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");
}
}