mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
address now not in dialog, added slideshows in products and groups and removed transaction history from customer / supplier / sales partner
This commit is contained in:
@@ -205,5 +205,10 @@ class DocType:
|
||||
clear_cache(self.doc.page_name)
|
||||
|
||||
def prepare_template_args(self):
|
||||
from website.helpers.product import get_parent_item_groups
|
||||
from website.helpers.product import get_parent_item_groups, url_for_website
|
||||
self.parent_groups = get_parent_item_groups(self.doc.item_group) + [{"name":self.doc.name}]
|
||||
self.doc.website_image = url_for_website(self.doc.website_image)
|
||||
|
||||
if self.doc.slideshow:
|
||||
from website.helpers.slideshow import get_slideshow
|
||||
get_slideshow(self)
|
||||
@@ -4,7 +4,7 @@
|
||||
"docstatus": 0,
|
||||
"creation": "2012-12-17 14:56:32",
|
||||
"modified_by": "Administrator",
|
||||
"modified": "2012-12-25 13:52:47"
|
||||
"modified": "2012-12-27 10:36:56"
|
||||
},
|
||||
{
|
||||
"allow_attach": 1,
|
||||
@@ -781,6 +781,17 @@
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Show a slideshow at the top of the page",
|
||||
"depends_on": "show_in_website",
|
||||
"doctype": "DocField",
|
||||
"label": "Slideshow",
|
||||
"options": "Website Slideshow",
|
||||
"fieldname": "slideshow",
|
||||
"fieldtype": "Link",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Item Image (if not slideshow)",
|
||||
"depends_on": "show_in_website",
|
||||
"doctype": "DocField",
|
||||
"label": "Image",
|
||||
|
||||
Reference in New Issue
Block a user