fix: Set Query on warehouse fields in Stock Settings
This commit is contained in:
parent
db00270895
commit
bde13b98e0
@ -3,6 +3,15 @@
|
|||||||
|
|
||||||
frappe.ui.form.on('Stock Settings', {
|
frappe.ui.form.on('Stock Settings', {
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
let filters = function() {
|
||||||
|
return {
|
||||||
|
filters : {
|
||||||
|
is_group : 0
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
frm.set_query("default_warehouse", filters);
|
||||||
|
frm.set_query("sample_retention_warehouse", filters);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user