[fix] [patch] re-route
This commit is contained in:
parent
ee3204373c
commit
771ab0c8c3
@ -272,7 +272,7 @@ execute:frappe.db.sql('update tabQuotation set status="Cancelled" where docstatu
|
|||||||
execute:frappe.rename_doc("DocType", "Payments", "Sales Invoice Payment", force=True)
|
execute:frappe.rename_doc("DocType", "Payments", "Sales Invoice Payment", force=True)
|
||||||
erpnext.patches.v7_0.update_mins_to_first_response
|
erpnext.patches.v7_0.update_mins_to_first_response
|
||||||
erpnext.patches.v6_20x.repost_valuation_rate_for_negative_inventory
|
erpnext.patches.v6_20x.repost_valuation_rate_for_negative_inventory
|
||||||
erpnext.patches.v7_0.re_route
|
erpnext.patches.v7_0.re_route #2016-06-27
|
||||||
erpnext.patches.v7_0.create_warehouse_nestedset
|
erpnext.patches.v7_0.create_warehouse_nestedset
|
||||||
erpnext.patches.v7_0.system_settings_setup_complete
|
erpnext.patches.v7_0.system_settings_setup_complete
|
||||||
erpnext.patches.v7_0.merge_account_type_stock_and_warehouse_to_stock
|
erpnext.patches.v7_0.merge_account_type_stock_and_warehouse_to_stock
|
||||||
|
@ -11,7 +11,9 @@ def get_context(context):
|
|||||||
homepage = frappe.get_doc('Homepage')
|
homepage = frappe.get_doc('Homepage')
|
||||||
|
|
||||||
for item in homepage.products:
|
for item in homepage.products:
|
||||||
item.route = '/' + frappe.db.get_value('Item', item.item_code, 'route')
|
route = frappe.db.get_value('Item', item.item_code, 'route')
|
||||||
|
if route:
|
||||||
|
item.route = '/' + route
|
||||||
|
|
||||||
# show atleast 3 products
|
# show atleast 3 products
|
||||||
if len(homepage.products) < 3:
|
if len(homepage.products) < 3:
|
||||||
@ -24,4 +26,4 @@ def get_context(context):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'homepage': homepage
|
'homepage': homepage
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user