mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
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:
@@ -5,6 +5,12 @@ frappe.ui.form.on('Website Item', {
|
|||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
// should never check Private
|
// should never check Private
|
||||||
frm.fields_dict["website_image"].df.is_private = 0;
|
frm.fields_dict["website_image"].df.is_private = 0;
|
||||||
|
|
||||||
|
frm.set_query("website_warehouse", () => {
|
||||||
|
return {
|
||||||
|
filters: {"is_group": 0}
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
image: function() {
|
image: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user