fix: (ux) Add is_group=0 filter on website warehouse (#30396)
- It does not support group warehouses right now and it is misleading
This commit is contained in:
parent
4147f2134f
commit
d24458ab77
@ -5,6 +5,12 @@ frappe.ui.form.on('Website Item', {
|
||||
onload: function(frm) {
|
||||
// should never check Private
|
||||
frm.fields_dict["website_image"].df.is_private = 0;
|
||||
|
||||
frm.set_query("website_warehouse", () => {
|
||||
return {
|
||||
filters: {"is_group": 0}
|
||||
};
|
||||
});
|
||||
},
|
||||
|
||||
image: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user