moved directory structure

This commit is contained in:
Rushabh Mehta
2012-09-24 19:13:42 +05:30
parent e47a6779e9
commit 2fa2f7178d
1637 changed files with 47 additions and 11450 deletions

View File

@@ -0,0 +1 @@
from __future__ import unicode_literals

View File

@@ -0,0 +1,149 @@
# DocType, Batch
[
# These values are common in all dictionaries
{
'creation': '2012-03-27 14:36:26',
'docstatus': 0,
'modified': '2012-03-27 14:36:26',
'modified_by': u'Administrator',
'owner': u'harshada@webnotestech.com'
},
# These values are common for all DocType
{
'allow_trash': 1,
'autoname': u'field:batch_id',
'colour': u'White:FFF',
'doctype': 'DocType',
'document_type': u'Master',
'module': u'Stock',
'name': '__common__',
'section_style': u'Simple',
'server_code_error': u' ',
'version': 12
},
# These values are common for all DocField
{
'doctype': u'DocField',
'name': '__common__',
'parent': u'Batch',
'parentfield': u'fields',
'parenttype': u'DocType'
},
# These values are common for all DocPerm
{
'doctype': u'DocPerm',
'name': '__common__',
'parent': u'Batch',
'parentfield': u'permissions',
'parenttype': u'DocType',
'read': 1,
'role': u'Material Master Manager'
},
# DocType, Batch
{
'doctype': 'DocType',
'name': u'Batch'
},
# DocPerm
{
'cancel': 1,
'create': 1,
'doctype': u'DocPerm',
'permlevel': 0,
'write': 1
},
# DocPerm
{
'doctype': u'DocPerm',
'permlevel': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'trash_reason',
'fieldtype': u'Small Text',
'label': u'Trash Reason',
'oldfieldname': u'trash_reason',
'oldfieldtype': u'Small Text',
'permlevel': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'batch_id',
'fieldtype': u'Data',
'label': u'Batch ID',
'no_copy': 1,
'oldfieldname': u'batch_id',
'oldfieldtype': u'Data',
'permlevel': 0,
'reqd': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'description',
'fieldtype': u'Small Text',
'label': u'Description',
'oldfieldname': u'description',
'oldfieldtype': u'Small Text',
'permlevel': 0,
'width': u'300px'
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'start_date',
'fieldtype': u'Date',
'label': u'Batch Started Date',
'oldfieldname': u'start_date',
'oldfieldtype': u'Date',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'finished_date',
'fieldtype': u'Date',
'label': u'Batch Finished Date',
'oldfieldname': u'finished_date',
'oldfieldtype': u'Date',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'expiry_date',
'fieldtype': u'Date',
'label': u'Expiry Date',
'oldfieldname': u'expiry_date',
'oldfieldtype': u'Date',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'item',
'fieldtype': u'Link',
'label': u'Item',
'oldfieldname': u'item',
'oldfieldtype': u'Link',
'options': u'Item',
'permlevel': 0,
'reqd': 1
}
]

View File

@@ -0,0 +1,28 @@
// render
wn.doclistviews['Batch'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabBatch`.item",
"`tabBatch`.description",
]);
this.stats = this.stats.concat(['company']);
},
prepare_data: function(data) {
this._super(data);
if(data.description && data.description.length > 50) {
data.description = '<span title="'+data.description+'">' +
data.description.substr(0,50) + '...</span>';
}
},
columns: [
{width: '3%', content:'check'},
{width: '5%', content:'avatar'},
{width: '15%', content:'name'},
{width: '15%', content:'item'},
{width: '50%', content:'description+tags'},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});