Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta 2012-12-07 11:49:01 +01:00
commit ec557ee053
10 changed files with 241 additions and 144 deletions

View File

@ -25,7 +25,7 @@ erpnext.ActivityFeed = Class.extend({
init: function(row, data) { init: function(row, data) {
this.scrub_data(data); this.scrub_data(data);
this.add_date_separator(row, data); this.add_date_separator(row, data);
$(row).append(sprintf('<div style="margin: 0px">\ $(row).append(repl('<div style="margin: 0px">\
<span class="avatar avatar-small"><img src="%(imgsrc)s" /></span> \ <span class="avatar avatar-small"><img src="%(imgsrc)s" /></span> \
<span %(onclick)s class="label %(add_class)s">%(feed_type)s</span>\ <span %(onclick)s class="label %(add_class)s">%(feed_type)s</span>\
%(link)s %(subject)s <span class="user-info">%(by)s</span></div>', data)); %(link)s %(subject)s <span class="user-info">%(by)s</span></div>', data));
@ -53,6 +53,8 @@ erpnext.ActivityFeed = Class.extend({
// link // link
if(data.doc_name && data.feed_type!='Login') { if(data.doc_name && data.feed_type!='Login') {
data.link = repl('<a href="#!Form/%(doc_type)s/%(doc_name)s">%(doc_name)s</a>', data) data.link = repl('<a href="#!Form/%(doc_type)s/%(doc_name)s">%(doc_name)s</a>', data)
} else {
data.link = "";
} }
}, },
add_date_separator: function(row, data) { add_date_separator: function(row, data) {

View File

@ -2,18 +2,19 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-12-07 11:51:20", "creation": "2012-12-07 15:15:24",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-07 13:31:40" "modified": "2012-12-07 16:17:40"
}, },
{ {
"is_submittable": 1, "is_submittable": 1,
"autoname": "LAP/.#####", "autoname": "LAP/.#####",
"name": "__common__", "description": "Apply / Approve Leaves",
"search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year", "search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year",
"module": "HR", "module": "HR",
"doctype": "DocType", "doctype": "DocType",
"document_type": "Transaction" "document_type": "Transaction",
"name": "__common__"
}, },
{ {
"name": "__common__", "name": "__common__",
@ -36,7 +37,6 @@
}, },
{ {
"default": "Open", "default": "Open",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Status", "label": "Status",
"no_copy": 1, "no_copy": 1,
@ -47,7 +47,6 @@
}, },
{ {
"description": "Leave can be approved by users with Role, \"Leave Approver\"", "description": "Leave can be approved by users with Role, \"Leave Approver\"",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Leave Approver", "label": "Leave Approver",
"fieldname": "leave_approver", "fieldname": "leave_approver",
@ -58,7 +57,7 @@
"search_index": 1, "search_index": 1,
"doctype": "DocField", "doctype": "DocField",
"label": "Leave Type", "label": "Leave Type",
"options": "\nCasual Leave", "options": "link:Leave Type",
"fieldname": "leave_type", "fieldname": "leave_type",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
@ -67,10 +66,8 @@
}, },
{ {
"search_index": 1, "search_index": 1,
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "From Date", "label": "From Date",
"trigger": "Client",
"fieldname": "from_date", "fieldname": "from_date",
"fieldtype": "Date", "fieldtype": "Date",
"reqd": 1, "reqd": 1,
@ -78,20 +75,16 @@
}, },
{ {
"search_index": 1, "search_index": 1,
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "To Date", "label": "To Date",
"trigger": "Client",
"fieldname": "to_date", "fieldname": "to_date",
"fieldtype": "Date", "fieldtype": "Date",
"reqd": 1, "reqd": 1,
"permlevel": 0 "permlevel": 0
}, },
{ {
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Half Day", "label": "Half Day",
"trigger": "Client",
"fieldname": "half_day", "fieldname": "half_day",
"fieldtype": "Check", "fieldtype": "Check",
"permlevel": 0 "permlevel": 0
@ -155,7 +148,6 @@
}, },
{ {
"default": "Today", "default": "Today",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Posting Date", "label": "Posting Date",
"no_copy": 1, "no_copy": 1,
@ -247,5 +239,10 @@
"role": "Leave Approver", "role": "Leave Approver",
"cancel": 0, "cancel": 0,
"permlevel": 2 "permlevel": 2
},
{
"doctype": "DocPerm",
"role": "All",
"permlevel": 3
} }
] ]

View File

@ -4,11 +4,11 @@ wn.doclistviews['Task'] = wn.views.ListView.extend({
this._super(d); this._super(d);
this.fields = this.fields.concat([ this.fields = this.fields.concat([
'`tabTask`.subject', '`tabTask`.subject',
'`tabTask`.project',
'`tabTask`.modified', '`tabTask`.modified',
'`tabTask`.status', '`tabTask`.status',
'`tabTask`.opening_date', '`tabTask`.opening_date',
'`tabTask`.priority', '`tabTask`.priority',
'`tabTask`.allocated_to',
]); ]);
this.stats = this.stats.concat(['status']); this.stats = this.stats.concat(['status']);
}, },
@ -42,9 +42,9 @@ wn.doclistviews['Task'] = wn.views.ListView.extend({
{width: '3%', content: 'check'}, {width: '3%', content: 'check'},
{width: '5%', content: 'avatar_modified'}, {width: '5%', content: 'avatar_modified'},
{width: '20%', content:'name'}, {width: '20%', content:'name'},
{width: '10%', content:'status_html'}, {width: '10%', content:'status_html'},
{width: '40%', content: 'subject+tags'}, {width: '40%', content: 'subject+tags'},
{width: '20%', content: 'allocated_to'}, {width: '20%', content: 'project'},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}} {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
] ]
}); });

View File

@ -2,9 +2,9 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-07-12 23:29:44", "creation": "2012-12-06 15:57:00",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-03 18:05:25" "modified": "2012-12-07 14:55:49"
}, },
{ {
"in_create": 1, "in_create": 1,
@ -24,6 +24,7 @@
"parent": "Item Group", "parent": "Item Group",
"doctype": "DocField", "doctype": "DocField",
"parenttype": "DocType", "parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields" "parentfield": "fields"
}, },
{ {
@ -47,8 +48,7 @@
"fieldname": "item_group_name", "fieldname": "item_group_name",
"fieldtype": "Data", "fieldtype": "Data",
"search_index": 0, "search_index": 0,
"reqd": 1, "reqd": 1
"permlevel": 0
}, },
{ {
"description": "Check this if you want to show in website", "description": "Check this if you want to show in website",
@ -58,14 +58,30 @@
"doctype": "DocField", "doctype": "DocField",
"label": "Show in Website", "label": "Show in Website",
"fieldname": "show_in_website", "fieldname": "show_in_website",
"fieldtype": "Check", "fieldtype": "Check"
"permlevel": 0 },
{
"depends_on": "show_in_website",
"doctype": "DocField",
"label": "Featured Items HTML",
"fieldname": "featured_items_html",
"fieldtype": "HTML",
"options": "<h4>Featured Items</h4>"
},
{
"description": "Items Featured on the Item Group Page",
"depends_on": "show_in_website",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Featured Items",
"fieldname": "featured_items",
"fieldtype": "Table",
"options": "Featured Item"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "cb0", "fieldname": "cb0",
"fieldtype": "Column Break", "fieldtype": "Column Break"
"permlevel": 0
}, },
{ {
"no_copy": 0, "no_copy": 0,
@ -73,7 +89,6 @@
"doctype": "DocField", "doctype": "DocField",
"label": "Parent Item Group", "label": "Parent Item Group",
"oldfieldname": "parent_item_group", "oldfieldname": "parent_item_group",
"permlevel": 0,
"trigger": "Client", "trigger": "Client",
"fieldname": "parent_item_group", "fieldname": "parent_item_group",
"fieldtype": "Link", "fieldtype": "Link",
@ -89,24 +104,12 @@
"doctype": "DocField", "doctype": "DocField",
"label": "Has Child Node", "label": "Has Child Node",
"oldfieldname": "is_group", "oldfieldname": "is_group",
"permlevel": 0,
"fieldname": "is_group", "fieldname": "is_group",
"fieldtype": "Select", "fieldtype": "Select",
"search_index": 0, "search_index": 0,
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
}, },
{
"no_copy": 0,
"oldfieldtype": "Small Text",
"doctype": "DocField",
"label": "Trash Reason",
"oldfieldname": "trash_reason",
"fieldname": "trash_reason",
"fieldtype": "Small Text",
"search_index": 0,
"permlevel": 1
},
{ {
"print_hide": 1, "print_hide": 1,
"no_copy": 1, "no_copy": 1,
@ -118,7 +121,6 @@
"fieldtype": "Int", "fieldtype": "Int",
"search_index": 1, "search_index": 1,
"hidden": 1, "hidden": 1,
"permlevel": 0,
"report_hide": 0, "report_hide": 0,
"in_filter": 1 "in_filter": 1
}, },
@ -133,7 +135,6 @@
"fieldtype": "Int", "fieldtype": "Int",
"search_index": 1, "search_index": 1,
"hidden": 1, "hidden": 1,
"permlevel": 0,
"report_hide": 0, "report_hide": 0,
"in_filter": 1 "in_filter": 1
}, },
@ -144,7 +145,6 @@
"doctype": "DocField", "doctype": "DocField",
"label": "old_parent", "label": "old_parent",
"oldfieldname": "old_parent", "oldfieldname": "old_parent",
"permlevel": 0,
"fieldname": "old_parent", "fieldname": "old_parent",
"fieldtype": "Link", "fieldtype": "Link",
"search_index": 0, "search_index": 0,
@ -152,46 +152,6 @@
"options": "Item Group", "options": "Item Group",
"report_hide": 1 "report_hide": 1
}, },
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Material Manager",
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Material Manager",
"permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Material User",
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Material User",
"permlevel": 0
},
{ {
"create": 1, "create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
@ -207,5 +167,45 @@
"role": "Material Master Manager", "role": "Material Master Manager",
"cancel": 1, "cancel": 1,
"permlevel": 0 "permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material Manager",
"cancel": 0,
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material Manager",
"cancel": 0,
"permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material User",
"cancel": 0,
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material User",
"cancel": 0,
"permlevel": 0
} }
] ]

View File

View File

@ -0,0 +1,35 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-07 14:28:33",
"modified_by": "Administrator",
"modified": "2012-12-07 14:28:33"
},
{
"istable": 1,
"description": "Featured Item in Item Group",
"doctype": "DocType",
"module": "Stock",
"name": "__common__"
},
{
"parent": "Featured Item",
"doctype": "DocField",
"name": "__common__",
"label": "Item",
"parenttype": "DocType",
"options": "Item",
"fieldname": "item",
"fieldtype": "Link",
"permlevel": 0,
"parentfield": "fields"
},
{
"name": "Featured Item",
"doctype": "DocType"
},
{
"doctype": "DocField"
}
]

View File

@ -2,9 +2,9 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-10-26 16:49:39", "creation": "2012-12-07 15:15:29",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-03 11:24:59" "modified": "2012-12-07 15:44:48"
}, },
{ {
"allow_attach": 1, "allow_attach": 1,
@ -59,7 +59,6 @@
{ {
"description": "Item will be saved by this name in the data base.", "description": "Item will be saved by this name in the data base.",
"oldfieldtype": "Data", "oldfieldtype": "Data",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Item Code", "label": "Item Code",
"oldfieldname": "item_code", "oldfieldname": "item_code",
@ -67,8 +66,8 @@
"fieldtype": "Data", "fieldtype": "Data",
"search_index": 0, "search_index": 0,
"reqd": 1, "reqd": 1,
"in_filter": 0, "permlevel": 0,
"permlevel": 0 "in_filter": 0
}, },
{ {
"oldfieldtype": "Data", "oldfieldtype": "Data",
@ -85,16 +84,27 @@
{ {
"description": "<a href=\"#!Sales Browser/Item Group\">Manage Item Groups</a>", "description": "<a href=\"#!Sales Browser/Item Group\">Manage Item Groups</a>",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Item Group", "label": "Item Group",
"oldfieldname": "item_group", "oldfieldname": "item_group",
"permlevel": 0, "options": "Item Group",
"fieldname": "item_group", "fieldname": "item_group",
"fieldtype": "Link", "fieldtype": "Link",
"reqd": 1, "reqd": 1,
"in_filter": 1, "permlevel": 0,
"options": "Item Group" "in_filter": 1
},
{
"description": "Unit of measurement of this item (e.g. Kg, Unit, No, Pair).",
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Default Unit of Measure",
"oldfieldname": "stock_uom",
"options": "UOM",
"fieldname": "stock_uom",
"fieldtype": "Link",
"reqd": 0,
"permlevel": 0
}, },
{ {
"print_hide": 1, "print_hide": 1,
@ -144,7 +154,6 @@
}, },
{ {
"description": "Generates HTML to include image (1st attachment) in the description", "description": "Generates HTML to include image (1st attachment) in the description",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Add Image", "label": "Add Image",
"fieldname": "add_image", "fieldname": "add_image",
@ -163,66 +172,52 @@
"description": "Select \"Yes\" if you are maintaining stock of this item in your Inventory.", "description": "Select \"Yes\" if you are maintaining stock of this item in your Inventory.",
"default": "Yes", "default": "Yes",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Stock Item", "label": "Is Stock Item",
"oldfieldname": "is_stock_item", "oldfieldname": "is_stock_item",
"permlevel": 0, "options": "\nYes\nNo",
"fieldname": "is_stock_item", "fieldname": "is_stock_item",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "permlevel": 0
}, },
{ {
"description": "Mandatory if Stock Item is \"Yes\"", "description": "Mandatory if Stock Item is \"Yes\"",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Default Reserved Warehouse", "label": "Default Reserved Warehouse",
"oldfieldname": "default_warehouse", "oldfieldname": "default_warehouse",
"options": "Warehouse", "options": "Warehouse",
"fieldname": "default_warehouse", "fieldname": "default_warehouse",
"fieldtype": "Link", "fieldtype": "Link",
"permlevel": 0 "depends_on": "eval:doc.is_stock_item==\"Yes\"",
},
{
"description": "Enter unit of measurement in which stock of this item is maintained in your warehouse.",
"oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Default UoM",
"oldfieldname": "stock_uom",
"options": "UOM",
"fieldname": "stock_uom",
"fieldtype": "Link",
"reqd": 1,
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Percentage variation in quantity to be allowed while receiving or delivering this item.", "description": "Percentage variation in quantity to be allowed while receiving or delivering this item.",
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Allowance Percent", "label": "Allowance Percent",
"oldfieldname": "tolerance", "oldfieldname": "tolerance",
"fieldname": "tolerance", "fieldname": "tolerance",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "The system will generate a Purchase Request automatically when stock quantity goes below re-order level in warehouse of type \"Stores\" or \"Reserved Warehouse\".", "description": "The system will generate a Purchase Request automatically when stock quantity goes below re-order level in warehouse of type \"Stores\" or \"Reserved Warehouse\".",
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Re-Order Level", "label": "Re-Order Level",
"oldfieldname": "re_order_level", "oldfieldname": "re_order_level",
"fieldname": "re_order_level", "fieldname": "re_order_level",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "The quantity for the Purchase Request when the stock goes below re-order level.", "description": "The quantity for the Purchase Request when the stock goes below re-order level.",
"colour": "White:FFF", "depends_on": "eval:doc.is_stock_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Re-Order Qty", "label": "Re-Order Qty",
"fieldname": "re_order_qty", "fieldname": "re_order_qty",
@ -231,7 +226,7 @@
}, },
{ {
"description": "Send an email to users of role \"Material Manager\" and \"Purchase Manager\" when re-order level is crossed.", "description": "Send an email to users of role \"Material Manager\" and \"Purchase Manager\" when re-order level is crossed.",
"colour": "White:FFF", "depends_on": "eval:doc.is_stock_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Notify by Email on Re-order", "label": "Notify by Email on Re-order",
"fieldname": "email_notify", "fieldname": "email_notify",
@ -239,6 +234,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Valuation Method", "label": "Valuation Method",
"options": "\nFIFO\nMoving Average", "options": "\nFIFO\nMoving Average",
@ -250,12 +246,12 @@
"description": "You can enter the minimum quantity of this item to be ordered.", "description": "You can enter the minimum quantity of this item to be ordered.",
"default": "0.00", "default": "0.00",
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Minimum Order Qty", "label": "Minimum Order Qty",
"oldfieldname": "min_order_qty", "oldfieldname": "min_order_qty",
"fieldname": "min_order_qty", "fieldname": "min_order_qty",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"hidden": 0, "hidden": 0,
"permlevel": 0 "permlevel": 0
}, },
@ -265,32 +261,33 @@
"width": "50%", "width": "50%",
"fieldname": "column_break1", "fieldname": "column_break1",
"fieldtype": "Column Break", "fieldtype": "Column Break",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Select \"Yes\" if this item is used for some internal purpose in your company.", "description": "Select \"Yes\" if this item is used for some internal purpose in your company.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Asset Item", "label": "Is Asset Item",
"oldfieldname": "is_asset_item", "oldfieldname": "is_asset_item",
"permlevel": 0, "permlevel": 0,
"fieldname": "is_asset_item", "fieldname": "is_asset_item",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
}, },
{ {
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Has Batch No", "label": "Has Batch No",
"oldfieldname": "has_batch_no", "oldfieldname": "has_batch_no",
"options": "\nYes\nNo", "options": "\nYes\nNo",
"fieldname": "has_batch_no", "fieldname": "has_batch_no",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"permlevel": 0 "permlevel": 0
}, },
@ -298,13 +295,13 @@
"description": "Selecting \"Yes\" will give a unique identity to each entity of this item which can be viewed in the Serial No master.", "description": "Selecting \"Yes\" will give a unique identity to each entity of this item which can be viewed in the Serial No master.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Has Serial No", "label": "Has Serial No",
"oldfieldname": "has_serial_no", "oldfieldname": "has_serial_no",
"permlevel": 0, "permlevel": 0,
"fieldname": "has_serial_no", "fieldname": "has_serial_no",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"in_filter": 1, "in_filter": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
@ -316,6 +313,7 @@
"oldfieldname": "warranty_period", "oldfieldname": "warranty_period",
"fieldname": "warranty_period", "fieldname": "warranty_period",
"fieldtype": "Data", "fieldtype": "Data",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -325,10 +323,12 @@
"oldfieldname": "end_of_life", "oldfieldname": "end_of_life",
"fieldname": "end_of_life", "fieldname": "end_of_life",
"fieldtype": "Date", "fieldtype": "Date",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Net Weight of each Item", "description": "Net Weight of each Item",
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Net Weight", "label": "Net Weight",
"fieldname": "net_weight", "fieldname": "net_weight",
@ -336,6 +336,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_stock_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Weight UOM", "label": "Weight UOM",
"options": "UOM", "options": "UOM",
@ -345,7 +346,6 @@
}, },
{ {
"oldfieldtype": "Section Break", "oldfieldtype": "Section Break",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Purchase Details", "label": "Purchase Details",
"fieldname": "purchase_details", "fieldname": "purchase_details",
@ -356,74 +356,72 @@
"description": "Selecting \"Yes\" will allow this item to appear in Purchase Order , Purchase Receipt.", "description": "Selecting \"Yes\" will allow this item to appear in Purchase Order , Purchase Receipt.",
"default": "Yes", "default": "Yes",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Purchase Item", "label": "Is Purchase Item",
"oldfieldname": "is_purchase_item", "oldfieldname": "is_purchase_item",
"permlevel": 0, "options": "\nYes\nNo",
"fieldname": "is_purchase_item", "fieldname": "is_purchase_item",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "permlevel": 0
}, },
{ {
"description": "Lead Time days is number of days by which this item is expected in your warehouse. This days is fetched in Purchase Request when you select this item.", "description": "Lead Time days is number of days by which this item is expected in your warehouse. This days is fetched in Purchase Request when you select this item.",
"no_copy": 1, "no_copy": 1,
"oldfieldtype": "Int", "oldfieldtype": "Int",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Lead Time Days", "label": "Lead Time Days",
"oldfieldname": "lead_time_days", "oldfieldname": "lead_time_days",
"fieldname": "lead_time_days", "fieldname": "lead_time_days",
"fieldtype": "Int", "fieldtype": "Int",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Default Purchase Account in which cost of the item will be debited.", "description": "Default Purchase Account in which cost of the item will be debited.",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Default Expense Account", "label": "Default Expense Account",
"oldfieldname": "purchase_account", "oldfieldname": "purchase_account",
"trigger": "Client", "options": "Account",
"fieldname": "purchase_account", "fieldname": "purchase_account",
"fieldtype": "Link", "fieldtype": "Link",
"options": "Account", "depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Default Cost Center for tracking expense for this item.", "description": "Default Cost Center for tracking expense for this item.",
"oldfieldtype": "Link", "oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Default Cost Center", "label": "Default Cost Center",
"oldfieldname": "cost_center", "oldfieldname": "cost_center",
"options": "Cost Center", "options": "Cost Center",
"fieldname": "cost_center", "fieldname": "cost_center",
"fieldtype": "Link", "fieldtype": "Link",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Buying Cost will be updated from Purchase Orders and Purchase Receipts. <br>The buying cost will calculated by moving average method.", "description": "Buying Cost will be updated from Purchase Orders and Purchase Receipts. <br>The buying cost will calculated by moving average method.",
"no_copy": 1, "no_copy": 1,
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Buying Cost", "label": "Buying Cost",
"oldfieldname": "buying_cost", "oldfieldname": "buying_cost",
"fieldname": "buying_cost", "fieldname": "buying_cost",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 1 "permlevel": 1
}, },
{ {
"no_copy": 1, "no_copy": 1,
"oldfieldtype": "Currency", "oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Last Purchase Rate", "label": "Last Purchase Rate",
"oldfieldname": "last_purchase_rate", "oldfieldname": "last_purchase_rate",
"fieldname": "last_purchase_rate", "fieldname": "last_purchase_rate",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 1 "permlevel": 1
}, },
{ {
@ -433,6 +431,7 @@
"oldfieldname": "standard_rate", "oldfieldname": "standard_rate",
"fieldname": "standard_rate", "fieldname": "standard_rate",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -441,6 +440,7 @@
"width": "50%", "width": "50%",
"fieldname": "column_break2", "fieldname": "column_break2",
"fieldtype": "Column Break", "fieldtype": "Column Break",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -451,9 +451,11 @@
"options": "UOM Conversion Detail", "options": "UOM Conversion Detail",
"fieldname": "uom_conversion_details", "fieldname": "uom_conversion_details",
"fieldtype": "Table", "fieldtype": "Table",
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Manufacturer", "label": "Manufacturer",
"fieldname": "manufacturer", "fieldname": "manufacturer",
@ -461,6 +463,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Manufacturer Part Number", "label": "Manufacturer Part Number",
"fieldname": "manufacturer_part_no", "fieldname": "manufacturer_part_no",
@ -468,6 +471,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_purchase_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Item Supplier Details", "label": "Item Supplier Details",
"options": "Item Supplier", "options": "Item Supplier",
@ -487,7 +491,6 @@
"description": "Selecting \"Yes\" will allow this item to figure in Sales Order, Delivery Note", "description": "Selecting \"Yes\" will allow this item to figure in Sales Order, Delivery Note",
"default": "Yes", "default": "Yes",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Sales Item", "label": "Is Sales Item",
"oldfieldname": "is_sales_item", "oldfieldname": "is_sales_item",
@ -502,13 +505,13 @@
"description": "Select \"Yes\" if this item represents some work like training, designing, consulting etc.", "description": "Select \"Yes\" if this item represents some work like training, designing, consulting etc.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Service Item", "label": "Is Service Item",
"oldfieldname": "is_service_item", "oldfieldname": "is_service_item",
"permlevel": 0, "permlevel": 0,
"fieldname": "is_service_item", "fieldname": "is_service_item",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"in_filter": 1, "in_filter": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
@ -517,13 +520,13 @@
"description": "Select \"Yes\" if this item is to be sent to a customer or received from a supplier as a sample. Delivery notes and Purchase Receipts will update stock levels but there will be no invoice against this item.", "description": "Select \"Yes\" if this item is to be sent to a customer or received from a supplier as a sample. Delivery notes and Purchase Receipts will update stock levels but there will be no invoice against this item.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Allow Samples", "label": "Allow Samples",
"oldfieldname": "is_sample_item", "oldfieldname": "is_sample_item",
"permlevel": 0, "permlevel": 0,
"fieldname": "is_sample_item", "fieldname": "is_sample_item",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
}, },
@ -534,9 +537,11 @@
"oldfieldname": "max_discount", "oldfieldname": "max_discount",
"fieldname": "max_discount", "fieldname": "max_discount",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Default Income Account", "label": "Default Income Account",
"options": "Account", "options": "Account",
@ -545,6 +550,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Cost Center", "label": "Cost Center",
"options": "Cost Center", "options": "Cost Center",
@ -559,6 +565,7 @@
"oldfieldname": "sales_rate", "oldfieldname": "sales_rate",
"fieldname": "sales_rate", "fieldname": "sales_rate",
"fieldtype": "Currency", "fieldtype": "Currency",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"hidden": 1, "hidden": 1,
"permlevel": 0 "permlevel": 0
}, },
@ -568,22 +575,24 @@
"width": "50%", "width": "50%",
"fieldname": "column_break3", "fieldname": "column_break3",
"fieldtype": "Column Break", "fieldtype": "Column Break",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Create a price list from Price List master and enter standard ref rates against each of them. On selection of a price list in Quotation, Sales Order or Delivery Note, corresponding ref rate will be fetched for this item.", "description": "Create a price list from Price List master and enter standard ref rates against each of them. On selection of a price list in Quotation, Sales Order or Delivery Note, corresponding ref rate will be fetched for this item.",
"oldfieldtype": "Table", "oldfieldtype": "Table",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Item Prices", "label": "Item Prices",
"oldfieldname": "ref_rate_details", "oldfieldname": "ref_rate_details",
"options": "Item Price", "options": "Item Price",
"fieldname": "ref_rate_details", "fieldname": "ref_rate_details",
"fieldtype": "Table", "fieldtype": "Table",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "For the convenience of customers, these codes can be used in print formats like Invoices and Delivery Notes", "description": "For the convenience of customers, these codes can be used in print formats like Invoices and Delivery Notes",
"depends_on": "eval:doc.is_sales_item==\"Yes\"",
"doctype": "DocField", "doctype": "DocField",
"label": "Customer Codes", "label": "Customer Codes",
"options": "Item Customer Detail", "options": "Item Customer Detail",
@ -631,6 +640,7 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"description": "Quality Inspection Parameters",
"oldfieldtype": "Table", "oldfieldtype": "Table",
"doctype": "DocField", "doctype": "DocField",
"label": "Item Quality Inspection Parameter", "label": "Item Quality Inspection Parameter",
@ -638,6 +648,7 @@
"options": "Item Quality Inspection Parameter", "options": "Item Quality Inspection Parameter",
"fieldname": "item_specification_details", "fieldname": "item_specification_details",
"fieldtype": "Table", "fieldtype": "Table",
"depends_on": "eval:doc.inspection_required==\"Yes\"",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -652,39 +663,38 @@
"description": "Selecting \"Yes\" will allow you to create Bill of Material showing raw material and operational costs incurred to manufacture this item.", "description": "Selecting \"Yes\" will allow you to create Bill of Material showing raw material and operational costs incurred to manufacture this item.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Allow Bill of Materials", "label": "Allow Bill of Materials",
"oldfieldname": "is_manufactured_item", "oldfieldname": "is_manufactured_item",
"permlevel": 0, "options": "\nYes\nNo",
"fieldname": "is_manufactured_item", "fieldname": "is_manufactured_item",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "permlevel": 0
}, },
{ {
"no_copy": 1, "no_copy": 1,
"oldfieldtype": "Link", "oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Default BOM", "label": "Default BOM",
"oldfieldname": "default_bom", "oldfieldname": "default_bom",
"options": "BOM", "options": "BOM",
"fieldname": "default_bom", "fieldname": "default_bom",
"fieldtype": "Link", "fieldtype": "Link",
"depends_on": "eval:doc.is_manufactured_item==\"Yes\"",
"permlevel": 1 "permlevel": 1
}, },
{ {
"description": "Selecting \"Yes\" will allow you to make a Production Order for this item.", "description": "Selecting \"Yes\" will allow you to make a Production Order for this item.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Allow Production Order", "label": "Allow Production Order",
"oldfieldname": "is_pro_applicable", "oldfieldname": "is_pro_applicable",
"permlevel": 0, "permlevel": 0,
"fieldname": "is_pro_applicable", "fieldname": "is_pro_applicable",
"fieldtype": "Select", "fieldtype": "Select",
"depends_on": "eval:doc.is_manufactured_item==\"Yes\"",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "options": "\nYes\nNo"
}, },
@ -692,15 +702,14 @@
"description": "Select \"Yes\" if you supply raw materials to your supplier to manufacture this item.", "description": "Select \"Yes\" if you supply raw materials to your supplier to manufacture this item.",
"default": "No", "default": "No",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField", "doctype": "DocField",
"label": "Is Sub Contracted Item", "label": "Is Sub Contracted Item",
"oldfieldname": "is_sub_contracted_item", "oldfieldname": "is_sub_contracted_item",
"permlevel": 0, "options": "\nYes\nNo",
"fieldname": "is_sub_contracted_item", "fieldname": "is_sub_contracted_item",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
"options": "\nYes\nNo" "permlevel": 0
}, },
{ {
"print_hide": 1, "print_hide": 1,
@ -739,7 +748,7 @@
}, },
{ {
"description": "website page link", "description": "website page link",
"colour": "White:FFF", "depends_on": "show_in_website",
"doctype": "DocField", "doctype": "DocField",
"label": "Page Name", "label": "Page Name",
"fieldname": "page_name", "fieldname": "page_name",
@ -747,6 +756,7 @@
"permlevel": 1 "permlevel": 1
}, },
{ {
"depends_on": "show_in_website",
"doctype": "DocField", "doctype": "DocField",
"label": "Image", "label": "Image",
"options": "attach_files:", "options": "attach_files:",
@ -755,18 +765,29 @@
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "show_in_website",
"doctype": "DocField", "doctype": "DocField",
"label": "Short Description", "label": "Short Description",
"fieldname": "web_short_description", "fieldname": "web_short_description",
"fieldtype": "Text", "fieldtype": "Small Text",
"permlevel": 0 "permlevel": 0
}, },
{ {
"depends_on": "show_in_website",
"doctype": "DocField", "doctype": "DocField",
"label": "Long Description", "label": "Long Description",
"options": "Markdown",
"fieldname": "web_long_description", "fieldname": "web_long_description",
"fieldtype": "Code", "fieldtype": "Text Editor",
"permlevel": 0
},
{
"description": "These details will be shown in a formatted table the page for this product.",
"depends_on": "show_in_website",
"doctype": "DocField",
"label": "Item Website Specifications",
"options": "Item Website Specification",
"fieldname": "item_website_specifications",
"fieldtype": "Table",
"permlevel": 0 "permlevel": 0
}, },
{ {

View File

@ -0,0 +1,42 @@
[
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-07 15:42:25",
"modified_by": "Administrator",
"modified": "2012-12-07 15:44:18"
},
{
"istable": 1,
"description": "Table for Item that will be shown in Web Site",
"doctype": "DocType",
"module": "Stock",
"name": "__common__"
},
{
"name": "__common__",
"parent": "Item Website Specification",
"doctype": "DocField",
"parenttype": "DocType",
"permlevel": 0,
"parentfield": "fields"
},
{
"name": "Item Website Specification",
"doctype": "DocType"
},
{
"doctype": "DocField",
"label": "Label",
"width": "150px",
"fieldname": "label",
"fieldtype": "Data"
},
{
"doctype": "DocField",
"label": "Description",
"width": "300px",
"fieldname": "description",
"fieldtype": "Text"
}
]