This commit is contained in:
Vinayak Jethe
2018-01-24 13:51:26 +05:30
parent 6c3289dbcd
commit 2c8ce5a717

View File

@@ -82,6 +82,14 @@ erpnext.stock.ItemDashboard = Class.extend({
var message = __(" Currently no stock available in any warehouse")
$("<span class='text-muted small'>"+message+"</span>").appendTo(this.result);
}
if (frappe.boot.user.can_write.indexOf("Stock Entry")>=0){
$(".btn-move").show();
+ $(".btn-add").show();
}else{
$(".btn-move").hide();
+ $(".btn-add").hide();
}
},
get_item_dashboard_data: function(data, max_count, show_item) {
if(!max_count) max_count = 0;