[Fix] Source / Target warehouse does not toggle properly, if we change the purpose after saving a stock entry record
This commit is contained in:
parent
6870e45276
commit
661db8ba71
@ -356,6 +356,7 @@ cur_frm.fields_dict['production_order'].get_query = function(doc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.purpose = function(doc, cdt, cdn) {
|
cur_frm.cscript.purpose = function(doc, cdt, cdn) {
|
||||||
|
cur_frm.fields_dict.items.grid.refresh();
|
||||||
cur_frm.cscript.toggle_related_fields(doc);
|
cur_frm.cscript.toggle_related_fields(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user