[Fix] Source / Target warehouse does not toggle properly, if we change the purpose after saving a stock entry record

This commit is contained in:
Rohit Waghchaure 2016-10-04 14:46:34 +05:30
parent 6870e45276
commit 661db8ba71

View File

@ -356,6 +356,7 @@ cur_frm.fields_dict['production_order'].get_query = function(doc) {
}
cur_frm.cscript.purpose = function(doc, cdt, cdn) {
cur_frm.fields_dict.items.grid.refresh();
cur_frm.cscript.toggle_related_fields(doc);
}