Validate Select field values

This commit is contained in:
Anand Doshi 2014-06-19 15:52:19 +05:30
parent da342c7855
commit a5cfc59d81
6 changed files with 552 additions and 552 deletions

View File

@ -91,7 +91,7 @@
"label": "Account Type",
"oldfieldname": "account_type",
"oldfieldtype": "Select",
"options": "\nBank\nCash\nTax\nChargeable\nWarehouse\nReceivable\nPayable\nEquity\nFixed Asset\nCost of Goods Sold\nExpense Account\nIncome Account\nStock Received But Not Billed\nExpenses Included In Valuation\nStock Adjustment",
"options": "\nBank\nCash\nTax\nChargeable\nWarehouse\nReceivable\nPayable\nEquity\nFixed Asset\nCost of Goods Sold\nExpense Account\nIncome Account\nStock Received But Not Billed\nExpenses Included In Valuation\nStock Adjustment\nStock",
"permlevel": 0,
"search_index": 0
},
@ -210,7 +210,7 @@
"icon": "icon-money",
"idx": 1,
"in_create": 1,
"modified": "2014-06-03 18:27:58.109303",
"modified": "2014-06-19 18:27:58.109303",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Account",

View File

@ -113,7 +113,7 @@
"label": "Voucher Type",
"oldfieldname": "voucher_type",
"oldfieldtype": "Select",
"options": "Journal Voucher\nSales Invoice\nPurchase Invoice",
"options": "Journal Voucher\nSales Invoice\nPurchase Invoice\nPeriod Closing Voucher\nPurchase Receipt\nDelivery Note\nStock Entry\nStock Reconciliation",
"permlevel": 0,
"search_index": 0
},
@ -186,7 +186,7 @@
"icon": "icon-list",
"idx": 1,
"in_create": 1,
"modified": "2014-06-09 01:51:29.340077",
"modified": "2014-06-19 01:51:29.340077",
"modified_by": "Administrator",
"module": "Accounts",
"name": "GL Entry",

View File

@ -42,7 +42,7 @@
],
"fiscal_year": "_Test Fiscal Year 2013",
"grand_total_import": 0,
"naming_series": "BILL",
"naming_series": "_T-BILL",
"other_charges": [
{
"account_head": "_Test Account Shipping Charges - _TC",

View File

@ -13,7 +13,7 @@
"permlevel": 0
},
{
"default": "PRO",
"default": "PRO-",
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",

View File

@ -16,7 +16,7 @@
"doctype": "Lead",
"email_id": "test_lead2@example.com",
"lead_name": "_Test Lead 2",
"status": "Contacted"
"status": "Lead"
},
{
"doctype": "Lead",

View File

@ -125,7 +125,7 @@ def create_lead(email_id):
"doctype": "Lead",
"email_id": email_id,
"lead_name": real_name or email_id,
"status": "Contacted",
"status": "Lead",
"naming_series": get_default_naming_series("Lead"),
"company": frappe.db.get_default("company"),
"source": "Email"