allow negative stock field in global defaults

This commit is contained in:
Nabin Hait 2012-04-18 12:51:11 +05:30
parent 7afc2124a6
commit 97051ba79f

View File

@ -3,58 +3,58 @@
# These values are common in all dictionaries # These values are common in all dictionaries
{ {
'creation': '2010-08-08 17:09:09', 'creation': '2010-09-20 11:59:26',
'docstatus': 0, 'docstatus': 0,
'modified': '2012-01-20 11:25:18', 'modified': '2012-04-18 12:48:57',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1323855502', '_last_update': u'1323855502',
'allow_copy': 1, 'allow_copy': 1,
'allow_email': 1, 'allow_email': 1,
'allow_print': 1, 'allow_print': 1,
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': 'Standard', 'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'hide_toolbar': 0, 'hide_toolbar': 0,
'in_create': 1, 'in_create': 1,
'issingle': 1, 'issingle': 1,
'module': 'Setup', 'module': u'Setup',
'name': '__common__', 'name': '__common__',
'read_only': 1, 'read_only': 1,
'section_style': 'Tabbed', 'section_style': u'Tabbed',
'server_code_error': ' ', 'server_code_error': u' ',
'show_in_menu': 1, 'show_in_menu': 1,
'version': 517 'version': 518
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Manage Account', 'parent': u'Manage Account',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0 'permlevel': 0
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Manage Account', 'parent': u'Manage Account',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'read': 1 'read': 1
}, },
# DocType, Manage Account # DocType, Manage Account
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Manage Account' 'name': u'Manage Account'
}, },
# DocPerm # DocPerm
@ -62,9 +62,9 @@
'amend': 0, 'amend': 0,
'cancel': 0, 'cancel': 0,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'submit': 0, 'submit': 0,
'write': 1 'write': 1
}, },
@ -72,464 +72,474 @@
# DocPerm # DocPerm
{ {
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 0, 'permlevel': 0,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1, 'permlevel': 1,
'role': 'System Manager', 'role': u'All'
},
# DocPerm
{
'doctype': u'DocPerm',
'permlevel': 1,
'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'permlevel': 1,
'role': 'All'
},
# DocPerm
{
'doctype': 'DocPerm',
'permlevel': 2, 'permlevel': 2,
'role': 'System Manager', 'role': u'System Manager',
'write': 1 'write': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'label': 'System' 'label': u'System'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Example: http://frappe.erpnext.com', 'description': u'Example: http://frappe.erpnext.com',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'account_url', 'fieldname': u'account_url',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'Account URL' 'label': u'Account URL'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break' 'fieldtype': u'Column Break'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'sms_sender_name', 'fieldname': u'sms_sender_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'SMS Sender Name' 'label': u'SMS Sender Name'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'label': 'Company' 'label': u'Company'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_company', 'fieldname': u'default_company',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Default Company', 'label': u'Default Company',
'options': 'Company', 'options': u'Company',
'reqd': 0 'reqd': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'current_fiscal_year', 'fieldname': u'current_fiscal_year',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Current Fiscal Year', 'label': u'Current Fiscal Year',
'options': 'Fiscal Year', 'options': u'Fiscal Year',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'date_format', 'fieldname': u'date_format',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Date Format', 'label': u'Date Format',
'options': 'yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy' 'options': u'yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'default': 'INR', 'default': u'INR',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_currency', 'fieldname': u'default_currency',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Default Currency', 'label': u'Default Currency',
'options': 'link:Currency', 'options': u'link:Currency',
'reqd': 1 'reqd': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_currency_format', 'fieldname': u'default_currency_format',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Default Currency Format', 'label': u'Default Currency Format',
'options': 'Lacs\nMillions' 'options': u'Lacs\nMillions'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_currency_fraction', 'fieldname': u'default_currency_fraction',
'fieldtype': 'Data', 'fieldtype': u'Data',
'label': 'Default Currency Fraction' 'label': u'Default Currency Fraction'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'label': 'Stock' 'label': u'Stock'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'Column Break',
'width': '50%' 'width': u'50%'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_item_group', 'fieldname': u'default_item_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Default Item Group', 'label': u'Default Item Group',
'options': 'Item Group' 'options': u'Item Group'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'HTML',
'label': 'IGHelp', 'label': u'IGHelp',
'options': '<a href="#!Sales Browser/Item Group">To manage Item Groups, click here</a>' 'options': u'<a href="#!Sales Browser/Item Group">To manage Item Groups, click here</a>'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_stock_uom', 'fieldname': u'default_stock_uom',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Default Stock UOM', 'label': u'Default Stock UOM',
'options': 'UOM' 'options': u'UOM'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_valuation_method', 'fieldname': u'default_valuation_method',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Default Valuation Method', 'label': u'Default Valuation Method',
'options': 'FIFO\nMoving Average' 'options': u'FIFO\nMoving Average'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldname': 'default_warehouse_type', 'description': u'Applicable only if valuation method is moving average',
'fieldtype': 'Link', 'doctype': u'DocField',
'label': 'Default Warehouse Type', 'fieldname': u'allow_negative_stock',
'options': 'Warehouse Type' 'fieldtype': u'Check',
'label': u'Allow Negative Stock'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'auto_indent', 'fieldname': u'default_warehouse_type',
'fieldtype': 'Check', 'fieldtype': u'Link',
'label': 'Raise Indent when stock reaches re-order level' 'label': u'Default Warehouse Type',
'options': u'Warehouse Type'
}, },
# DocField # DocField
{ {
'default': '1', 'doctype': u'DocField',
'doctype': 'DocField', 'fieldname': u'auto_indent',
'fieldtype': 'Column Break', 'fieldtype': u'Check',
'width': '50%' 'label': u'Raise Indent when stock reaches re-order level'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'default': u'1',
'description': 'Percentage you are allowed to receive or deliver more against the quantity ordered. <p>For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units</p>', 'doctype': u'DocField',
'doctype': 'DocField', 'fieldtype': u'Column Break',
'fieldname': 'tolerance', 'width': u'50%'
'fieldtype': 'Currency',
'label': 'Allowance Percent'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Stock level frozen up to this date, nobody can do / modify entry except authorized person', 'description': u'Percentage you are allowed to receive or deliver more against the quantity ordered. <p>For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units</p>',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_frozen_upto', 'fieldname': u'tolerance',
'fieldtype': 'Date', 'fieldtype': u'Currency',
'label': 'Stock Frozen Upto' 'label': u'Allowance Percent'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Users with this role are allowed to do / modify stock entry before frozen date', 'description': u'Stock level frozen up to this date, nobody can do / modify entry except authorized person',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'stock_auth_role', 'fieldname': u'stock_frozen_upto',
'fieldtype': 'Link', 'fieldtype': u'Date',
'label': 'Authorized Role (Frozen Entry)', 'label': u'Stock Frozen Upto'
'options': 'Role'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldtype': 'Section Break', 'description': u'Users with this role are allowed to do / modify stock entry before frozen date',
'label': 'Accounts' 'doctype': u'DocField',
'fieldname': u'stock_auth_role',
'fieldtype': u'Link',
'label': u'Authorized Role (Frozen Entry)',
'options': u'Role'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'description': 'Accounting entry frozen up to this date, nobody can do / modify entry except authorized person', 'fieldtype': u'Section Break',
'doctype': 'DocField', 'label': u'Accounts'
'fieldname': 'acc_frozen_upto',
'fieldtype': 'Date',
'label': 'Accounts Frozen Upto'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Users with this role are allowed to do / modify accounting entry before frozen date', 'description': u'Accounting entry frozen up to this date, nobody can do / modify entry except authorized person',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'bde_auth_role', 'fieldname': u'acc_frozen_upto',
'fieldtype': 'Link', 'fieldtype': u'Date',
'label': 'Authourized Role (Frozen Entry)', 'label': u'Accounts Frozen Upto'
'options': 'Role'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldname': 'credit_controller', 'description': u'Users with this role are allowed to do / modify accounting entry before frozen date',
'fieldtype': 'Link', 'doctype': u'DocField',
'label': 'Credit Controller', 'fieldname': u'bde_auth_role',
'options': 'Role' 'fieldtype': u'Link',
'label': u'Authourized Role (Frozen Entry)',
'options': u'Role'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break' 'fieldname': u'credit_controller',
'fieldtype': u'Link',
'label': u'Credit Controller',
'options': u'Role'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldtype': u'Column Break'
'label': 'Account Info',
'options': '<div class="help-box">For more accounting defaults, Open <a href="#!List/Company">Company</a></div>'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'HTML',
'label': 'Selling' 'label': u'Account Info',
'options': u'<div class="help-box">For more accounting defaults, Open <a href="#!List/Company">Company</a></div>'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'default': 'Customer Name', 'fieldtype': u'Section Break',
'doctype': 'DocField', 'label': u'Selling'
'fieldname': 'cust_master_name',
'fieldtype': 'Select',
'label': 'Customer Master created by ',
'options': 'Customer Name\nNaming Series'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldname': 'default_customer_group', 'default': u'Customer Name',
'fieldtype': 'Link', 'doctype': u'DocField',
'label': 'Default Customer Group', 'fieldname': u'cust_master_name',
'options': 'Customer Group' 'fieldtype': u'Select',
'label': u'Customer Master created by ',
'options': u'\nCustomer Name\nNaming Series'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldname': u'default_customer_group',
'label': 'CGHelp', 'fieldtype': u'Link',
'options': '<a href="#!Sales Browser/Customer Group">To manage Customer Groups, click here</a>' 'label': u'Default Customer Group',
'options': u'Customer Group'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_territory', 'fieldtype': u'HTML',
'fieldtype': 'Link', 'label': u'CGHelp',
'label': 'Default Territory', 'options': u'<a href="#!Sales Browser/Customer Group">To manage Customer Groups, click here</a>'
'options': 'Territory'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'HTML', 'fieldname': u'default_territory',
'label': 'TerritoryHelp', 'fieldtype': u'Link',
'options': '<a href="#!Sales Browser/Territory">To manage Territory, click here</a>' 'label': u'Default Territory',
'options': u'Territory'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldtype': u'HTML',
'width': '50%' 'label': u'TerritoryHelp',
'options': u'<a href="#!Sales Browser/Territory">To manage Territory, click here</a>'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_price_list', 'fieldtype': u'Column Break',
'fieldtype': 'Link', 'width': u'50%'
'label': 'Default Price List',
'options': 'Price List'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_price_list_currency', 'fieldname': u'default_price_list',
'fieldtype': 'Link', 'fieldtype': u'Link',
'label': 'Default Price List Currency', 'label': u'Default Price List',
'options': 'Currency' 'options': u'Price List'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'default': 'No', 'fieldname': u'default_price_list_currency',
'doctype': 'DocField', 'fieldtype': u'Link',
'fieldname': 'so_required', 'label': u'Default Price List Currency',
'fieldtype': 'Select', 'options': u'Currency'
'label': 'Sales Order Required',
'options': 'No\nYes'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'No', 'default': u'No',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'dn_required', 'fieldname': u'so_required',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Delivery Note Required', 'label': u'Sales Order Required',
'options': 'No\nYes' 'options': u'No\nYes'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldtype': 'Section Break', 'default': u'No',
'label': 'Buying' 'doctype': u'DocField',
'fieldname': u'dn_required',
'fieldtype': u'Select',
'label': u'Delivery Note Required',
'options': u'No\nYes'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'default_supplier_type', 'fieldtype': u'Section Break',
'fieldtype': 'Link', 'label': u'Buying'
'label': 'Default Supplier Type',
'options': 'Supplier Type'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'default': 'Supplier Name', 'fieldname': u'default_supplier_type',
'doctype': 'DocField', 'fieldtype': u'Link',
'fieldname': 'supp_master_name', 'label': u'Default Supplier Type',
'fieldtype': 'Select', 'options': u'Supplier Type'
'label': 'Supplier Master created by ',
'options': 'Supplier Name\nNaming Series'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldtype': 'Column Break', 'default': u'Supplier Name',
'width': '50%' 'doctype': u'DocField',
'fieldname': u'supp_master_name',
'fieldtype': u'Select',
'label': u'Supplier Master created by ',
'options': u'Supplier Name\nNaming Series'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'default': 'No', 'fieldtype': u'Column Break',
'doctype': 'DocField', 'width': u'50%'
'fieldname': 'po_required',
'fieldtype': 'Select',
'label': 'Purchase Order Required',
'options': 'No\nYes'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'default': 'No', 'default': u'No',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'pr_required', 'fieldname': u'po_required',
'fieldtype': 'Select', 'fieldtype': u'Select',
'label': 'Purchase Receipt Required', 'label': u'Purchase Order Required',
'options': 'No\nYes' 'options': u'No\nYes'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldtype': 'Section Break', 'default': u'No',
'label': 'HR', 'doctype': u'DocField',
'options': '<div style="padding-top: 8px;" class="columnHeading">HR</div>' 'fieldname': u'pr_required',
'fieldtype': u'Select',
'label': u'Purchase Receipt Required',
'options': u'No\nYes'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'description': 'Employee record is created using selected field. ', 'fieldtype': u'Section Break',
'doctype': 'DocField', 'label': u'HR',
'fieldname': 'emp_created_by', 'options': u'<div style="padding-top: 8px;" class="columnHeading">HR</div>'
'fieldtype': 'Select', },
'label': 'Employee Records to be created by ',
'options': '\nNaming Series\nEmployee Number' # DocField
{
'colour': u'White:FFF',
'description': u'Employee record is created using selected field. ',
'doctype': u'DocField',
'fieldname': u'emp_created_by',
'fieldtype': u'Select',
'label': u'Employee Records to be created by ',
'options': u'\nNaming Series\nEmployee Number'
} }
] ]