fixes new routing, for frappe/frappe#600

This commit is contained in:
Rushabh Mehta 2014-06-17 16:53:44 +05:30
parent 5df521bad5
commit 9f887b436c
3 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from frappe.website.render import clear_cache
from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow
condition_field = "show_in_website"
template = "templates/generators/item_group.html"
class ItemGroup(NestedSet, WebsiteGenerator):
nsm_parent_field = 'parent_item_group'

View File

@ -6,6 +6,9 @@ import frappe
from frappe.utils import cstr, filter_strip_join
from frappe.website.website_generator import WebsiteGenerator
condition_field = "show_in_website"
template = "templates/generators/sales_partner.html"
class SalesPartner(WebsiteGenerator):
def autoname(self):
self.name = self.partner_name

View File

@ -13,6 +13,7 @@ from frappe.website.doctype.website_slideshow.website_slideshow import get_slide
class WarehouseNotSet(frappe.ValidationError): pass
condition_field = "show_in_website"
template = "templates/generators/item.html"
class Item(WebsiteGenerator):
def onload(self):