Merge pull request #7530 from KanchanChauhan/website-default-warehouse

[Minor] Set website warehouse as default warehouse
This commit is contained in:
Nabin Hait 2017-01-20 12:11:42 +05:30 committed by GitHub
commit 188f9da160

View File

@ -113,6 +113,12 @@ frappe.ui.form.on("Item", {
has_variants: function(frm) {
erpnext.item.toggle_attributes(frm);
},
show_in_website: function(frm) {
if (frm.doc.default_warehouse && !frm.doc.website_warehouse){
frm.set_value("website_warehouse", frm.doc.default_warehouse);
}
}
});