mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
updates to item, item_group and website
This commit is contained in:
0
website/doctype/product_settings/__init__.py
Normal file
0
website/doctype/product_settings/__init__.py
Normal file
8
website/doctype/product_settings/product_settings.py
Normal file
8
website/doctype/product_settings/product_settings.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
|
||||
65
website/doctype/product_settings/product_settings.txt
Normal file
65
website/doctype/product_settings/product_settings.txt
Normal 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"
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user