mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +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:
@@ -42,9 +42,5 @@ class DocType():
|
||||
|
||||
def prepare_template_args(self):
|
||||
if self.doc.slideshow:
|
||||
slideshow = webnotes.model_wrapper("Website Slideshow", self.doc.slideshow)
|
||||
self.slides = slideshow.doclist.get({"doctype":"Website Slideshow Item"})
|
||||
self.doc.slideshow_header = slideshow.doc.header or ""
|
||||
for s in self.slides:
|
||||
if s.image and not s.image.lower().startswith("http"):
|
||||
s.image = "files/" + s.image
|
||||
from website.helpers.slideshow import get_slideshow
|
||||
get_slideshow(self)
|
||||
|
||||
0
website/doctype/website_script/__init__.py
Normal file
0
website/doctype/website_script/__init__.py
Normal file
8
website/doctype/website_script/website_script.py
Normal file
8
website/doctype/website_script/website_script.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# For license information, please see license.txt
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
class DocType:
|
||||
def __init__(self, d, dl):
|
||||
self.doc, self.doclist = d, dl
|
||||
51
website/doctype/website_script/website_script.txt
Normal file
51
website/doctype/website_script/website_script.txt
Normal file
@@ -0,0 +1,51 @@
|
||||
[
|
||||
{
|
||||
"owner": "Administrator",
|
||||
"docstatus": 0,
|
||||
"creation": "2012-12-27 11:51:24",
|
||||
"modified_by": "Administrator",
|
||||
"modified": "2012-12-27 12:25:04"
|
||||
},
|
||||
{
|
||||
"issingle": 1,
|
||||
"description": "Script to attach to all web pages.",
|
||||
"doctype": "DocType",
|
||||
"module": "Website",
|
||||
"document_type": "Other",
|
||||
"name": "__common__"
|
||||
},
|
||||
{
|
||||
"parent": "Website Script",
|
||||
"doctype": "DocField",
|
||||
"name": "__common__",
|
||||
"label": "Javascript",
|
||||
"parenttype": "DocType",
|
||||
"options": "Javascript",
|
||||
"fieldname": "javascript",
|
||||
"fieldtype": "Code",
|
||||
"permlevel": 0,
|
||||
"parentfield": "fields"
|
||||
},
|
||||
{
|
||||
"parent": "Website Script",
|
||||
"read": 1,
|
||||
"name": "__common__",
|
||||
"create": 1,
|
||||
"doctype": "DocPerm",
|
||||
"write": 1,
|
||||
"parenttype": "DocType",
|
||||
"role": "Website Manager",
|
||||
"permlevel": 0,
|
||||
"parentfield": "permissions"
|
||||
},
|
||||
{
|
||||
"name": "Website Script",
|
||||
"doctype": "DocType"
|
||||
},
|
||||
{
|
||||
"doctype": "DocField"
|
||||
},
|
||||
{
|
||||
"doctype": "DocPerm"
|
||||
}
|
||||
]
|
||||
@@ -4,7 +4,7 @@
|
||||
"docstatus": 0,
|
||||
"creation": "2012-07-12 23:29:36",
|
||||
"modified_by": "Administrator",
|
||||
"modified": "2012-12-25 15:41:48"
|
||||
"modified": "2012-12-27 12:27:02"
|
||||
},
|
||||
{
|
||||
"issingle": 1,
|
||||
@@ -80,6 +80,15 @@
|
||||
"fieldtype": "Section Break",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Background shade of the top menu bar",
|
||||
"doctype": "DocField",
|
||||
"label": "Top Bar Background",
|
||||
"options": "Black\nWhite",
|
||||
"fieldname": "top_bar_background",
|
||||
"fieldtype": "Select",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Brand is what appears on the top-right of the toolbar. If it is an image, make sure it\nhas a transparent background and use the <img /> tag. Keep size as 200px x 30px",
|
||||
"doctype": "DocField",
|
||||
@@ -171,22 +180,6 @@
|
||||
"hidden": 1,
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"label": "Startup",
|
||||
"fieldname": "analytics",
|
||||
"fieldtype": "Section Break",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"description": "Bind events on startup and page change",
|
||||
"doctype": "DocField",
|
||||
"label": "Startup Code",
|
||||
"options": "Javascript",
|
||||
"fieldname": "startup_code",
|
||||
"fieldtype": "Code",
|
||||
"permlevel": 0
|
||||
},
|
||||
{
|
||||
"create": 1,
|
||||
"doctype": "DocPerm",
|
||||
|
||||
Reference in New Issue
Block a user