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:
Marica 2022-03-24 12:56:57 +05:30 committed by GitHub
parent 4147f2134f
commit d24458ab77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {