[breadcrumbs] refactor
This commit is contained in:
parent
ecd2e0f386
commit
f5f0d5a83a
@ -13,7 +13,7 @@ frappe.pages["Accounts Browser"].on_page_load = function(wrapper){
|
||||
single_column: true
|
||||
})
|
||||
|
||||
frappe.add_breadcrumbs("Accounts");
|
||||
frappe.breadcrumbs.add("Accounts");
|
||||
|
||||
var main = wrapper.page.main,
|
||||
chart_area = $("<div>")
|
||||
|
@ -8,7 +8,7 @@ frappe.pages['financial-analytics'].on_page_load = function(wrapper) {
|
||||
single_column: true
|
||||
});
|
||||
erpnext.financial_analytics = new erpnext.FinancialAnalytics(wrapper, 'Financial Analytics');
|
||||
frappe.add_breadcrumbs("Accounts");
|
||||
frappe.breadcrumbs.add("Accounts");
|
||||
|
||||
};
|
||||
|
||||
|
@ -11,7 +11,7 @@ frappe.pages['purchase-analytics'].on_page_load = function(wrapper) {
|
||||
new erpnext.PurchaseAnalytics(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Buying");
|
||||
frappe.breadcrumbs.add("Buying");
|
||||
}
|
||||
|
||||
erpnext.PurchaseAnalytics = frappe.views.TreeGridReport.extend({
|
||||
|
9
erpnext/change_log/v5/v5_0_0.md
Normal file
9
erpnext/change_log/v5/v5_0_0.md
Normal file
@ -0,0 +1,9 @@
|
||||
### Version 5
|
||||
|
||||
Please see https://erpnext.com/version-5
|
||||
|
||||
Changes include:
|
||||
|
||||
1. New Visual Design
|
||||
1. Account balance in multiple currencies
|
||||
1. Hundreds of usability fixes
|
@ -13,9 +13,22 @@ $(document).bind('toolbar_setup', function() {
|
||||
});
|
||||
|
||||
// doctypes created via tree
|
||||
frappe.create_routes["Customer Group"] = "Sales Browser/Customer Group";
|
||||
frappe.create_routes["Territory"] = "Sales Browser/Territory";
|
||||
frappe.create_routes["Item Group"] = "Sales Browser/Item Group";
|
||||
frappe.create_routes["Sales Person"] = "Sales Browser/Sales Person";
|
||||
frappe.create_routes["Account"] = "Accounts Browser/Account";
|
||||
frappe.create_routes["Cost Center"] = "Accounts Browser/Cost Center";
|
||||
$.extend(frappe.create_routes, {
|
||||
"Customer Group": "Sales Browser/Customer Group",
|
||||
"Territory": "Sales Browser/Territory",
|
||||
"Item Group": "Sales Browser/Item Group",
|
||||
"Sales Person": "Sales Browser/Sales Person",
|
||||
"Account": "Accounts Browser/Account",
|
||||
"Cost Center": "Accounts Browser/Cost Center"
|
||||
});
|
||||
|
||||
// preferred modules for breadcrumbs
|
||||
$.extend(frappe.breadcrumbs.preferred, {
|
||||
"Item Group": "Stock",
|
||||
"Customer Group": "Selling",
|
||||
"Supplier Type": "Buying",
|
||||
"Territory": "Selling",
|
||||
"Sales Person": "Selling",
|
||||
"Sales Partner": "Selling",
|
||||
"Brand": "Selling"
|
||||
});
|
||||
|
@ -10,7 +10,7 @@ frappe.pages['sales-analytics'].on_page_load = function(wrapper) {
|
||||
new erpnext.SalesAnalytics(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Selling")
|
||||
frappe.breadcrumbs.add("Selling")
|
||||
|
||||
};
|
||||
|
||||
|
@ -7,7 +7,7 @@ frappe.pages["Sales Browser"].on_page_load = function(wrapper){
|
||||
single_column: true,
|
||||
});
|
||||
|
||||
frappe.add_breadcrumbs("Selling")
|
||||
frappe.breadcrumbs.add("Selling")
|
||||
|
||||
wrapper.page.set_secondary_action(__('Refresh'), function() {
|
||||
wrapper.make_tree();
|
||||
|
@ -10,7 +10,7 @@ frappe.pages['sales-funnel'].on_page_load = function(wrapper) {
|
||||
|
||||
wrapper.sales_funnel = new erpnext.SalesFunnel(wrapper);
|
||||
|
||||
frappe.add_breadcrumbs("Selling");
|
||||
frappe.breadcrumbs.add("Selling");
|
||||
}
|
||||
|
||||
erpnext.SalesFunnel = Class.extend({
|
||||
|
@ -12,7 +12,7 @@ frappe.pages['stock-analytics'].on_page_load = function(wrapper) {
|
||||
new erpnext.StockAnalytics(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Stock")
|
||||
frappe.breadcrumbs.add("Stock")
|
||||
|
||||
};
|
||||
|
||||
|
@ -9,7 +9,7 @@ frappe.pages['stock-ledger'].on_page_load = function(wrapper) {
|
||||
});
|
||||
|
||||
new erpnext.StockLedger(wrapper);
|
||||
frappe.add_breadcrumbs("Stock")
|
||||
frappe.breadcrumbs.add("Stock")
|
||||
};
|
||||
|
||||
frappe.require("assets/erpnext/js/stock_grid_report.js");
|
||||
|
@ -11,7 +11,7 @@ frappe.pages['stock-level'].on_page_load = function(wrapper) {
|
||||
new erpnext.StockLevel(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Stock")
|
||||
frappe.breadcrumbs.add("Stock")
|
||||
;
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ frappe.pages['support-analytics'].on_page_load = function(wrapper) {
|
||||
new erpnext.SupportAnalytics(wrapper);
|
||||
|
||||
|
||||
frappe.add_breadcrumbs("Support")
|
||||
frappe.breadcrumbs.add("Support")
|
||||
|
||||
}
|
||||
|
||||
|
@ -74,5 +74,3 @@
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
|
||||
|
@ -7,12 +7,12 @@
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{% if logo -%}
|
||||
<img itemprop="brand" src="{{ logo }}" class="partner-logo"
|
||||
<img itemprop="brand" src="{{ logo }}" class="partner-logo"
|
||||
alt="{{ partner_name }}" title="{{ partner_name }}" />
|
||||
<br><br>
|
||||
{%- endif %}
|
||||
<address>
|
||||
{% if partner_website -%}<p><a href="{{ partner_website }}"
|
||||
{% if partner_website -%}<p><a href="{{ partner_website }}"
|
||||
target="_blank">{{ partner_website }}</a></p>{%- endif %}
|
||||
{% if partner_address -%}<p itemprop="address">{{ partner_address }}</p>{%- endif %}
|
||||
{% if phone -%}<p itemprop="telephone">{{ phone }}</p>{%- endif %}
|
||||
@ -25,5 +25,3 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
|
@ -26,5 +26,3 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
|
||||
|
@ -29,5 +29,3 @@ $(document).ready(function() {
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user