default value in single doctypes

This commit is contained in:
Nabin Hait 2014-02-19 19:02:40 +05:30
parent 22831563ff
commit f5bb9ae1b1
2 changed files with 85 additions and 83 deletions

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-06-25 11:04:03", "creation": "2013-06-25 11:04:03",
"docstatus": 0, "docstatus": 0,
"modified": "2013-12-20 19:22:59", "modified": "2014-02-19 19:02:00",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -42,6 +42,7 @@
"name": "Buying Settings" "name": "Buying Settings"
}, },
{ {
"default": "Supplier Name",
"doctype": "DocField", "doctype": "DocField",
"fieldname": "supp_master_name", "fieldname": "supp_master_name",
"fieldtype": "Select", "fieldtype": "Select",

View File

@ -1,25 +1,25 @@
[ [
{ {
"creation": "2013-06-24 16:37:54", "creation": "2013-06-24 16:37:54",
"docstatus": 0, "docstatus": 0,
"modified": "2014-01-27 20:00:56", "modified": "2014-02-19 19:02:23",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
{ {
"description": "Settings", "description": "Settings",
"doctype": "DocType", "doctype": "DocType",
"icon": "icon-cog", "icon": "icon-cog",
"issingle": 1, "issingle": 1,
"module": "Stock", "module": "Stock",
"name": "__common__" "name": "__common__"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"name": "__common__", "name": "__common__",
"parent": "Stock Settings", "parent": "Stock Settings",
"parentfield": "fields", "parentfield": "fields",
"parenttype": "DocType", "parenttype": "DocType",
"permlevel": 0 "permlevel": 0
}, },
{ {
@ -35,102 +35,103 @@
"read": 1, "read": 1,
"role": "Material Manager", "role": "Material Manager",
"write": 1 "write": 1
}, },
{ {
"doctype": "DocType", "doctype": "DocType",
"name": "Stock Settings" "name": "Stock Settings"
}, },
{ {
"doctype": "DocField", "default": "Item Code",
"fieldname": "item_naming_by", "doctype": "DocField",
"fieldtype": "Select", "fieldname": "item_naming_by",
"label": "Item Naming By", "fieldtype": "Select",
"label": "Item Naming By",
"options": "Item Code\nNaming Series" "options": "Item Code\nNaming Series"
}, },
{ {
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>", "description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"doctype": "DocField", "doctype": "DocField",
"fieldname": "item_group", "fieldname": "item_group",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Default Item Group", "label": "Default Item Group",
"options": "Item Group" "options": "Item Group"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "stock_uom", "fieldname": "stock_uom",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Default Stock UOM", "label": "Default Stock UOM",
"options": "UOM" "options": "UOM"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "column_break_4", "fieldname": "column_break_4",
"fieldtype": "Column Break" "fieldtype": "Column Break"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "allow_negative_stock", "fieldname": "allow_negative_stock",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Allow Negative Stock" "label": "Allow Negative Stock"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "valuation_method", "fieldname": "valuation_method",
"fieldtype": "Select", "fieldtype": "Select",
"label": "Default Valuation Method", "label": "Default Valuation Method",
"options": "FIFO\nMoving Average" "options": "FIFO\nMoving Average"
}, },
{ {
"description": "Percentage you are allowed to receive or deliver more against the quantity ordered. For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units.", "description": "Percentage you are allowed to receive or deliver more against the quantity ordered. For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units.",
"doctype": "DocField", "doctype": "DocField",
"fieldname": "tolerance", "fieldname": "tolerance",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Allowance Percent" "label": "Allowance Percent"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "auto_material_request", "fieldname": "auto_material_request",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Auto Material Request" "label": "Auto Material Request"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "auto_indent", "fieldname": "auto_indent",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Raise Material Request when stock reaches re-order level" "label": "Raise Material Request when stock reaches re-order level"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "reorder_email_notify", "fieldname": "reorder_email_notify",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Notify by Email on creation of automatic Material Request" "label": "Notify by Email on creation of automatic Material Request"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "freeze_stock_entries", "fieldname": "freeze_stock_entries",
"fieldtype": "Section Break", "fieldtype": "Section Break",
"label": "Freeze Stock Entries" "label": "Freeze Stock Entries"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "stock_frozen_upto", "fieldname": "stock_frozen_upto",
"fieldtype": "Date", "fieldtype": "Date",
"label": "Stock Frozen Upto" "label": "Stock Frozen Upto"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "stock_frozen_upto_days", "fieldname": "stock_frozen_upto_days",
"fieldtype": "Int", "fieldtype": "Int",
"label": "Freeze Stocks Older Than [Days]" "label": "Freeze Stocks Older Than [Days]"
}, },
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "stock_auth_role", "fieldname": "stock_auth_role",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Role Allowed to edit frozen stock", "label": "Role Allowed to edit frozen stock",
"options": "Role" "options": "Role"
}, },
{ {
"doctype": "DocPerm" "doctype": "DocPerm"
} }
] ]