(cherry picked from commit a254201696)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -380,8 +380,7 @@ $.extend(erpnext.item, {
|
|||||||
// Show Stock Levels only if is_stock_item
|
// Show Stock Levels only if is_stock_item
|
||||||
if (frm.doc.is_stock_item) {
|
if (frm.doc.is_stock_item) {
|
||||||
frappe.require('assets/js/item-dashboard.min.js', function() {
|
frappe.require('assets/js/item-dashboard.min.js', function() {
|
||||||
frm.dashboard.parent.find('.stock-levels').remove();
|
const section = frm.dashboard.add_section('', __("Stock Levels"));
|
||||||
const section = frm.dashboard.add_section('', __("Stock Levels"), 'stock-levels');
|
|
||||||
erpnext.item.item_dashboard = new erpnext.stock.ItemDashboard({
|
erpnext.item.item_dashboard = new erpnext.stock.ItemDashboard({
|
||||||
parent: section,
|
parent: section,
|
||||||
item_code: frm.doc.name,
|
item_code: frm.doc.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user