fixes to language

This commit is contained in:
Rushabh Mehta 2013-01-24 15:22:06 +05:30
parent ab6d28ef4f
commit 46e8084aea
2 changed files with 22 additions and 37 deletions

View File

@ -21,15 +21,14 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
cur_frm.cscript.refresh = function(doc, cdt, cdn) { cur_frm.cscript.refresh = function(doc, cdt, cdn) {
if(!doc.__islocal) { flds = ['status', 'item_code', 'warehouse', 'purchase_document_type',
flds = ['item_code', 'warehouse', 'purchase_document_type', 'purchase_document_no', 'purchase_date', 'purchase_time', 'purchase_rate', 'supplier'] 'purchase_document_no', 'purchase_date', 'purchase_time', 'purchase_rate',
for(i=0;i<flds.length;i++) 'supplier']
cur_frm.set_df_property(flds[i], 'read_only', 1); for(i=0;i<flds.length;i++) {
cur_frm.set_df_property(flds[i], 'read_only', doc.__islocal ? 0 : 1);
} }
} }
// item details // item details
// ------------- // -------------
cur_frm.add_fetch('item_code', 'item_name', 'item_name') cur_frm.add_fetch('item_code', 'item_name', 'item_name')

View File

@ -2,7 +2,7 @@
{ {
"creation": "2013-01-10 16:34:31", "creation": "2013-01-10 16:34:31",
"docstatus": 0, "docstatus": 0,
"modified": "2013-01-22 14:57:25", "modified": "2013-01-24 14:29:22",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@ -24,14 +24,17 @@
}, },
{ {
"amend": 0, "amend": 0,
"create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
"name": "__common__", "name": "__common__",
"parent": "Support Ticket", "parent": "Support Ticket",
"parentfield": "permissions", "parentfield": "permissions",
"parenttype": "DocType", "parenttype": "DocType",
"permlevel": 0,
"read": 1, "read": 1,
"report": 1, "report": 1,
"submit": 0 "submit": 0,
"write": 1
}, },
{ {
"doctype": "DocType", "doctype": "DocType",
@ -60,7 +63,7 @@
"oldfieldname": "status", "oldfieldname": "status",
"oldfieldtype": "Select", "oldfieldtype": "Select",
"options": "\nOpen\nTo Reply\nWaiting for Customer\nHold\nClosed", "options": "\nOpen\nTo Reply\nWaiting for Customer\nHold\nClosed",
"read_only": 1, "read_only": 0,
"reqd": 0, "reqd": 0,
"search_index": 1 "search_index": 1
}, },
@ -244,34 +247,17 @@
}, },
{ {
"cancel": 0, "cancel": 0,
"create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
"permlevel": 0, "role": "Guest"
"role": "Guest",
"write": 1
}, },
{ {
"cancel": 0, "cancel": 0,
"create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
"permlevel": 0, "role": "Customer"
"role": "Customer",
"write": 1
}, },
{ {
"cancel": 1, "cancel": 1,
"create": 1,
"doctype": "DocPerm", "doctype": "DocPerm",
"permlevel": 0, "role": "Support Team"
"role": "Support Team",
"write": 1
},
{
"cancel": 0,
"create": 0,
"doctype": "DocPerm",
"permlevel": 2,
"role": "Support Team",
"write": 0
} }
] ]