updates to item, item_group and website

This commit is contained in:
Rushabh Mehta
2012-12-20 17:11:51 +05:30
parent 608a751b57
commit fc19f25c88
20 changed files with 277 additions and 153 deletions

View 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

View File

@@ -0,0 +1,65 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-20 14:05:00",
"modified_by": "Administrator",
"modified": "2012-12-20 15:46:15"
},
{
"issingle": 1,
"description": "Settings for Product Catalog on the website",
"doctype": "DocType",
"module": "Website",
"document_type": "Other",
"name": "__common__"
},
{
"name": "__common__",
"parent": "Product Settings",
"doctype": "DocField",
"parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields"
},
{
"parent": "Product Settings",
"read": 1,
"name": "__common__",
"create": 1,
"doctype": "DocPerm",
"write": 1,
"parenttype": "DocType",
"role": "Website Manager",
"permlevel": 0,
"parentfield": "permissions"
},
{
"name": "Product Settings",
"doctype": "DocType"
},
{
"description": "Default: \"Product Search\"",
"doctype": "DocField",
"label": "Search Help",
"fieldname": "search_help",
"fieldtype": "Data"
},
{
"description": "List of Item Groups to be shown in \"All Products\" menu - in the sequence wanted and with number of indents (left spacing to show a tree effect).",
"doctype": "DocField",
"label": "Product Categories",
"fieldname": "sb2",
"fieldtype": "Section Break"
},
{
"doctype": "DocField",
"label": "Website Product Categories",
"fieldname": "website_product_categories",
"fieldtype": "Table",
"options": "Website Product Category"
},
{
"doctype": "DocPerm"
}
]

View 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

View File

@@ -0,0 +1,43 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-20 14:21:35",
"modified_by": "Administrator",
"modified": "2012-12-20 15:00:25"
},
{
"istable": 1,
"description": "Product Category for website",
"doctype": "DocType",
"module": "Website",
"document_type": "Transaction",
"name": "__common__"
},
{
"name": "__common__",
"parent": "Website Product Category",
"doctype": "DocField",
"parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields"
},
{
"name": "Website Product Category",
"doctype": "DocType"
},
{
"doctype": "DocField",
"label": "Item Group",
"fieldname": "item_group",
"fieldtype": "Link",
"options": "Item Group"
},
{
"doctype": "DocField",
"label": "Indent",
"fieldname": "indent",
"fieldtype": "Select",
"options": "0\n1\n2\n3\n4\n5"
}
]

View File

@@ -4,7 +4,7 @@
"docstatus": 0,
"creation": "2012-07-12 23:29:36",
"modified_by": "Administrator",
"modified": "2012-12-18 16:15:43"
"modified": "2012-12-20 14:28:46"
},
{
"issingle": 1,
@@ -65,15 +65,6 @@
"fieldtype": "Column Break",
"permlevel": 0
},
{
"description": "Only Items / Groups under this Groups will be shown on the website. This will also represent the \"Products\" Home Page.",
"doctype": "DocField",
"label": "Default Product Category",
"options": "Item Group",
"fieldname": "default_product_category",
"fieldtype": "Link",
"permlevel": 0
},
{
"description": "If checked, the Home page will be the default Item Group for the website.",
"doctype": "DocField",