merged conflict in gl_control.py

This commit is contained in:
Rushabh Mehta
2011-07-13 14:37:17 +05:30
23 changed files with 1517 additions and 664 deletions

View File

View File

@@ -0,0 +1,63 @@
# DocType, Series Detail
[
# These values are common in all dictionaries
{
'creation': '2011-07-08 13:20:10',
'docstatus': 0,
'modified': '2011-07-08 13:20:34',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
'colour': 'White:FFF',
'doctype': 'DocType',
'istable': 1,
'module': 'Setup',
'name': '__common__',
'section_style': 'Tray',
'show_in_menu': 0,
'version': 3
},
# These values are common for all DocField
{
'doctype': 'DocField',
'name': '__common__',
'parent': 'Series Detail',
'parentfield': 'fields',
'parenttype': 'DocType',
'permlevel': 0
},
# DocType, Series Detail
{
'doctype': 'DocType',
'name': 'Series Detail'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'series',
'fieldtype': 'Read Only',
'idx': 1,
'label': 'Series',
'oldfieldname': 'series',
'oldfieldtype': 'Read Only'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'remove',
'fieldtype': 'Check',
'idx': 2,
'label': 'Remove',
'oldfieldname': 'remove',
'oldfieldtype': 'Check',
'trigger': 'Client'
}
]

View File

@@ -57,7 +57,8 @@ class DocType:
# Company
master_dict = {'Company':{'company_name':company_name,
'abbr':comp_abbr
'abbr':comp_abbr,
'default_currency':currency
}}
self.create_records(master_dict)
@@ -73,7 +74,9 @@ class DocType:
'pr_required':'No',
'emp_created_by':'Naming Series',
'cust_master_name':'Customer Name',
'supp_master_name':'Supplier Name'}
'supp_master_name':'Supplier Name',
'default_currency_format': (currency=='INR') and 'Lacs' or 'Millions'
}
# Set
self.set_defaults(def_args)