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:
Rushabh Mehta
2012-12-27 14:05:02 +05:30
parent 7285a720a0
commit 5f1d57ecb7
30 changed files with 528 additions and 764 deletions

View File

@@ -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)

View File

@@ -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",