fixes new routing, for frappe/frappe#600
This commit is contained in:
parent
5df521bad5
commit
9f887b436c
@ -10,6 +10,7 @@ from frappe.website.render import clear_cache
|
|||||||
from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow
|
from frappe.website.doctype.website_slideshow.website_slideshow import get_slideshow
|
||||||
|
|
||||||
condition_field = "show_in_website"
|
condition_field = "show_in_website"
|
||||||
|
template = "templates/generators/item_group.html"
|
||||||
|
|
||||||
class ItemGroup(NestedSet, WebsiteGenerator):
|
class ItemGroup(NestedSet, WebsiteGenerator):
|
||||||
nsm_parent_field = 'parent_item_group'
|
nsm_parent_field = 'parent_item_group'
|
||||||
|
|||||||
@ -6,6 +6,9 @@ import frappe
|
|||||||
from frappe.utils import cstr, filter_strip_join
|
from frappe.utils import cstr, filter_strip_join
|
||||||
from frappe.website.website_generator import WebsiteGenerator
|
from frappe.website.website_generator import WebsiteGenerator
|
||||||
|
|
||||||
|
condition_field = "show_in_website"
|
||||||
|
template = "templates/generators/sales_partner.html"
|
||||||
|
|
||||||
class SalesPartner(WebsiteGenerator):
|
class SalesPartner(WebsiteGenerator):
|
||||||
def autoname(self):
|
def autoname(self):
|
||||||
self.name = self.partner_name
|
self.name = self.partner_name
|
||||||
|
|||||||
@ -13,6 +13,7 @@ from frappe.website.doctype.website_slideshow.website_slideshow import get_slide
|
|||||||
class WarehouseNotSet(frappe.ValidationError): pass
|
class WarehouseNotSet(frappe.ValidationError): pass
|
||||||
|
|
||||||
condition_field = "show_in_website"
|
condition_field = "show_in_website"
|
||||||
|
template = "templates/generators/item.html"
|
||||||
|
|
||||||
class Item(WebsiteGenerator):
|
class Item(WebsiteGenerator):
|
||||||
def onload(self):
|
def onload(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user