mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
[fix] load dependancies on page load event
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
frappe.require("assets/erpnext/js/stock_analytics.js", function() {
|
||||
frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
title: __('Stock Analytics'),
|
||||
single_column: true
|
||||
});
|
||||
|
||||
frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
frappe.ui.make_app_page({
|
||||
parent: wrapper,
|
||||
title: __('Stock Analytics'),
|
||||
single_column: true
|
||||
});
|
||||
|
||||
frappe.require(["assets/erpnext/js/stock_grid_report.js",
|
||||
"assets/erpnext/js/stock_analytics.js"], function() {
|
||||
new erpnext.StockAnalytics(wrapper);
|
||||
|
||||
frappe.breadcrumbs.add("Stock")
|
||||
};
|
||||
}, false);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user