mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
updates to item, item_group and website
This commit is contained in:
@@ -39,6 +39,5 @@ class DocType(DocTypeNestedSet):
|
||||
|
||||
def prepare_template_args(self):
|
||||
self.doc.sub_groups = webnotes.conn.sql("""select name, page_name
|
||||
from `tabItem Group` where parent_item_group=%s
|
||||
and ifnull(show_in_website,0)=1""", self.doc.name, as_dict=1)
|
||||
|
||||
from `tabItem Group` where parent_item_group=%s
|
||||
and ifnull(show_in_website,0)=1""", self.doc.name, as_dict=1)
|
||||
@@ -4,7 +4,7 @@
|
||||
"docstatus": 0,
|
||||
"creation": "2012-12-07 15:15:28",
|
||||
"modified_by": "Administrator",
|
||||
"modified": "2012-12-18 16:23:48"
|
||||
"modified": "2012-12-20 16:11:15"
|
||||
},
|
||||
{
|
||||
"in_create": 1,
|
||||
@@ -103,29 +103,13 @@
|
||||
"fieldtype": "Check"
|
||||
},
|
||||
{
|
||||
"description": "HTML / Banner that will show on the top of product list.",
|
||||
"depends_on": "show_in_website",
|
||||
"doctype": "DocField",
|
||||
"label": "Description",
|
||||
"fieldname": "description",
|
||||
"fieldtype": "Text Editor"
|
||||
},
|
||||
{
|
||||
"depends_on": "show_in_website",
|
||||
"doctype": "DocField",
|
||||
"label": "Featured Items",
|
||||
"fieldname": "featured_items_html",
|
||||
"fieldtype": "Section Break"
|
||||
},
|
||||
{
|
||||
"description": "Items Featured on the Item Group Page",
|
||||
"depends_on": "show_in_website",
|
||||
"doctype": "DocField",
|
||||
"label": "Featured Items",
|
||||
"fieldname": "featured_items",
|
||||
"fieldtype": "Table",
|
||||
"hidden": 0,
|
||||
"options": "Featured Item"
|
||||
},
|
||||
{
|
||||
"print_hide": 1,
|
||||
"no_copy": 1,
|
||||
@@ -168,13 +152,6 @@
|
||||
"options": "Item Group",
|
||||
"report_hide": 1
|
||||
},
|
||||
{
|
||||
"doctype": "DocField",
|
||||
"label": "file_list",
|
||||
"fieldname": "file_list",
|
||||
"fieldtype": "Text",
|
||||
"hidden": 1
|
||||
},
|
||||
{
|
||||
"print_hide": 1,
|
||||
"no_copy": 1,
|
||||
|
||||
Reference in New Issue
Block a user