[Minor] Set website warehouse as default warehouse
diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js
index 8844528..73a04f2 100644
--- a/erpnext/stock/doctype/item/item.js
+++ b/erpnext/stock/doctype/item/item.js
@@ -113,6 +113,12 @@
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);
+ }
}
});