Fixed state code of WB and allowed invoice_copy to edit after submit

This commit is contained in:
Nabin Hait
2017-07-07 13:14:25 +05:30
parent fbb5945ff3
commit 8b486b0f28
7 changed files with 11 additions and 9 deletions

View File

@@ -72,5 +72,5 @@ state_numbers = {
"Tripura": "16",
"Uttar Pradesh": "35",
"Uttarakhand": "36",
"West Bengal": "37"
"West Bengal": "19"
}

View File

@@ -15,7 +15,7 @@
"state_name": "Uttarakhand"
},
{
"state_number": "37",
"state_number": "19",
"state_code": "WB",
"state_name": "West Bengal"
},

View File

@@ -102,7 +102,7 @@ def make_custom_fields():
fieldtype='Data', insert_after='company_address',
options='company_address.gstin', print_hide=1),
dict(fieldname='invoice_copy', label='Invoice Copy',
fieldtype='Select', insert_after='project', print_hide=1,
fieldtype='Select', insert_after='project', print_hide=1, allow_on_submit=1,
options='ORIGINAL FOR RECIPIENT\nDUPLICATE FOR TRANSPORTER\nTRIPLICATE FOR SUPPLIER')
],
'Item': [