From 27c5b4075f2287095a3bd3e1909eec17fd0ce4c0 Mon Sep 17 00:00:00 2001 From: Ravi Dey Date: Wed, 29 Jun 2011 18:05:18 +0530 Subject: [PATCH] company reload doc --- patches/patch.py | 6 +- setup/doctype/company/company.txt | 187 ++++++++++++++---------------- 2 files changed, 92 insertions(+), 101 deletions(-) diff --git a/patches/patch.py b/patches/patch.py index 643b53c000..3db4dc63c2 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,6 +1,6 @@ # REMEMBER to update this # ======================== -last_patch = 303 +last_patch = 304 #------------------------------------------- @@ -1201,4 +1201,6 @@ def execute(patch_no): elif patch_no == 302: sql("update `tabDocField` set no_copy = 1 where fieldname = 'naming_series'") elif patch_no == 303: - pass + pass + elif patch_no == 304: + reload_doc('setup', 'doctype', 'company') diff --git a/setup/doctype/company/company.txt b/setup/doctype/company/company.txt index d1664fad7c..598ec29eef 100644 --- a/setup/doctype/company/company.txt +++ b/setup/doctype/company/company.txt @@ -1,6 +1,6 @@ [ { - '_last_update': '1303215455', + '_last_update': '1309168616', 'allow_attach': None, 'allow_copy': None, 'allow_email': None, @@ -29,7 +29,7 @@ 'istable': None, 'max_attachments': None, 'menu_index': None, - 'modified': '2011-04-20 12:17:16', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'module': 'Setup', 'name': 'Company', @@ -50,8 +50,10 @@ 'server_code_error': ' ', 'show_in_menu': 0, 'smallicon': None, + 'subject': None, + 'tag_fields': None, 'use_template': None, - 'version': 86 + 'version': 91 }, { 'amend': 0, @@ -62,8 +64,8 @@ 'doctype': 'DocPerm', 'execute': None, 'idx': 1, - 'match': '', - 'modified': '2010-08-08 17:08:55', + 'match': None, + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'PERM00119', 'owner': 'Administrator', @@ -77,16 +79,16 @@ 'write': 1 }, { - 'amend': 0, - 'cancel': 0, + 'amend': 1, + 'cancel': 1, 'create': 1, 'creation': '2010-08-08 17:08:55', 'docstatus': 0, 'doctype': 'DocPerm', 'execute': None, 'idx': 2, - 'match': '', - 'modified': '2010-08-08 17:08:55', + 'match': None, + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'PERM00120', 'owner': 'Administrator', @@ -95,23 +97,23 @@ 'parenttype': 'DocType', 'permlevel': 0, 'read': 1, - 'role': 'Administrator', + 'role': 'System Manager', 'submit': 0, 'write': 1 }, { 'amend': None, - 'cancel': 0, + 'cancel': None, 'create': None, - 'creation': '2010-08-08 17:08:55', + 'creation': '2011-06-29 18:02:47', 'docstatus': 0, 'doctype': 'DocPerm', 'execute': None, 'idx': 3, 'match': None, - 'modified': '2010-08-08 17:08:55', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': 'PERM00121', + 'name': 'PERM00859', 'owner': 'Administrator', 'parent': 'Company', 'parentfield': 'permissions', @@ -125,7 +127,7 @@ { 'allow_on_submit': None, 'colour': None, - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-06-29 17:48:40', 'default': None, 'depends_on': None, 'description': 'Please Enter Company Name and Abbr and save the document. Once saved Accounting Settings will be populated automatically', @@ -138,9 +140,10 @@ 'idx': 1, 'in_filter': None, 'label': 'Details', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000437', + 'name': 'FL05478', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': 'Section Break', @@ -159,7 +162,7 @@ }, { 'allow_on_submit': None, - 'colour': None, + 'colour': 'White:FFF', 'creation': '2010-08-08 17:08:55', 'default': None, 'depends_on': None, @@ -173,10 +176,11 @@ 'idx': 2, 'in_filter': None, 'label': 'Company', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00695', - 'no_copy': 1, + 'no_column': None, + 'no_copy': 0, 'oldfieldname': 'company_name', 'oldfieldtype': 'Data', 'options': None, @@ -208,10 +212,11 @@ 'idx': 3, 'in_filter': None, 'label': 'Abbr', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00696', - 'no_copy': 1, + 'no_column': None, + 'no_copy': 0, 'oldfieldname': 'abbr', 'oldfieldtype': 'Data', 'options': None, @@ -243,9 +248,10 @@ 'idx': 4, 'in_filter': None, 'label': 'Address', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00697', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'address', 'oldfieldtype': 'Small Text', @@ -265,7 +271,7 @@ { 'allow_on_submit': None, 'colour': None, - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-04-19 17:40:13', 'default': None, 'depends_on': None, 'description': None, @@ -278,9 +284,10 @@ 'idx': 5, 'in_filter': None, 'label': 'Default Currency', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000434', + 'name': '000003935', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': None, @@ -300,7 +307,7 @@ { 'allow_on_submit': None, 'colour': None, - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-06-29 17:48:40', 'default': None, 'depends_on': None, 'description': None, @@ -313,9 +320,10 @@ 'idx': 6, 'in_filter': None, 'label': None, - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000438', + 'name': 'FL05479', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': 'Column Break', @@ -348,9 +356,10 @@ 'idx': 7, 'in_filter': None, 'label': 'Phone No', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00699', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'phone_no', 'oldfieldtype': 'Data', @@ -383,9 +392,10 @@ 'idx': 8, 'in_filter': None, 'label': 'Email', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00700', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'email', 'oldfieldtype': 'Data', @@ -418,9 +428,10 @@ 'idx': 9, 'in_filter': None, 'label': 'Fax', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00701', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'fax', 'oldfieldtype': 'Data', @@ -437,41 +448,6 @@ 'trigger': None, 'width': None }, - { - 'allow_on_submit': None, - 'colour': 'White:FFF', - 'creation': '2010-12-14 10:32:55', - 'default': None, - 'depends_on': 'eval:!doc.__islocal', - 'description': None, - 'docstatus': 0, - 'doctype': 'DocField', - 'fieldname': None, - 'fieldtype': 'Button', - 'hidden': None, - 'icon': None, - 'idx': 10, - 'in_filter': None, - 'label': 'Trash Company', - 'modified': '2011-05-09 11:04:28', - 'modified_by': 'Administrator', - 'name': 'FL04130', - 'no_copy': None, - 'oldfieldname': None, - 'oldfieldtype': 'Button', - 'options': None, - 'owner': 'nabin@webnotestech.com', - 'parent': 'Company', - 'parentfield': 'fields', - 'parenttype': 'DocType', - 'permlevel': 0, - 'print_hide': None, - 'report_hide': None, - 'reqd': None, - 'search_index': None, - 'trigger': 'Client', - 'width': None - }, { 'allow_on_submit': None, 'colour': None, @@ -485,12 +461,13 @@ 'fieldtype': 'Data', 'hidden': None, 'icon': None, - 'idx': 11, + 'idx': 10, 'in_filter': None, 'label': 'Website', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00702', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'website', 'oldfieldtype': 'Data', @@ -510,7 +487,7 @@ { 'allow_on_submit': None, 'colour': 'White:FFF', - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-06-29 17:48:40', 'default': None, 'depends_on': None, 'description': 'Company registration numbers for your reference. Example: VAT Registration Numbers etc.', @@ -520,12 +497,13 @@ 'fieldtype': 'Section Break', 'hidden': None, 'icon': None, - 'idx': 12, + 'idx': 11, 'in_filter': None, 'label': 'Registration Info', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000439', + 'name': 'FL05480', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': 'Section Break', @@ -555,12 +533,13 @@ 'fieldtype': 'Code', 'hidden': None, 'icon': None, - 'idx': 13, + 'idx': 12, 'in_filter': None, 'label': 'Registration Details', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00704', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'registration_details', 'oldfieldtype': 'Code', @@ -580,7 +559,7 @@ { 'allow_on_submit': None, 'colour': None, - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-06-29 17:48:40', 'default': None, 'depends_on': 'eval:!doc.__islocal', 'description': None, @@ -590,12 +569,13 @@ 'fieldtype': 'Section Break', 'hidden': None, 'icon': None, - 'idx': 14, + 'idx': 13, 'in_filter': None, 'label': 'Accounting Settings', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000440', + 'name': 'FL05481', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': 'Section Break', @@ -625,12 +605,13 @@ 'fieldtype': 'Link', 'hidden': None, 'icon': None, - 'idx': 15, + 'idx': 14, 'in_filter': None, 'label': 'Default Bank Account', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00706', + 'no_column': None, 'no_copy': 1, 'oldfieldname': 'default_bank_account', 'oldfieldtype': 'Link', @@ -660,12 +641,13 @@ 'fieldtype': 'Link', 'hidden': None, 'icon': None, - 'idx': 16, + 'idx': 15, 'in_filter': None, 'label': 'Receivables Group', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00707', + 'no_column': None, 'no_copy': 1, 'oldfieldname': 'receivables_group', 'oldfieldtype': 'Link', @@ -695,12 +677,13 @@ 'fieldtype': 'Link', 'hidden': None, 'icon': None, - 'idx': 17, + 'idx': 16, 'in_filter': None, 'label': 'Payables Group', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00708', + 'no_column': None, 'no_copy': 1, 'oldfieldname': 'payables_group', 'oldfieldtype': 'Link', @@ -720,7 +703,7 @@ { 'allow_on_submit': None, 'colour': None, - 'creation': '2011-05-09 11:04:28', + 'creation': '2011-06-29 17:48:40', 'default': None, 'depends_on': None, 'description': None, @@ -730,12 +713,13 @@ 'fieldtype': 'Column Break', 'hidden': None, 'icon': None, - 'idx': 18, + 'idx': 17, 'in_filter': None, 'label': None, - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', - 'name': '000000441', + 'name': 'FL05482', + 'no_column': None, 'no_copy': None, 'oldfieldname': None, 'oldfieldtype': 'Column Break', @@ -765,12 +749,13 @@ 'fieldtype': 'Select', 'hidden': None, 'icon': None, - 'idx': 19, + 'idx': 18, 'in_filter': None, 'label': 'If Yearly Budget Exceeded', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00710', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'yearly_bgt_flag', 'oldfieldtype': 'Select', @@ -800,12 +785,13 @@ 'fieldtype': 'Select', 'hidden': None, 'icon': None, - 'idx': 20, + 'idx': 19, 'in_filter': None, 'label': 'If Monthly Budget Exceeded', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00711', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'monthly_bgt_flag', 'oldfieldtype': 'Select', @@ -835,12 +821,13 @@ 'fieldtype': 'Int', 'hidden': None, 'icon': None, - 'idx': 21, + 'idx': 20, 'in_filter': None, 'label': 'Credit Days', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00712', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'credit_days', 'oldfieldtype': 'Int', @@ -870,12 +857,13 @@ 'fieldtype': 'Currency', 'hidden': None, 'icon': None, - 'idx': 22, + 'idx': 21, 'in_filter': None, 'label': 'Credit Limit', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00713', + 'no_column': None, 'no_copy': None, 'oldfieldname': 'credit_limit', 'oldfieldtype': 'Currency', @@ -905,12 +893,13 @@ 'fieldtype': 'Small Text', 'hidden': None, 'icon': None, - 'idx': 23, + 'idx': 22, 'in_filter': None, 'label': 'Trash Reason', - 'modified': '2011-05-09 11:04:28', + 'modified': '2011-06-29 18:02:47', 'modified_by': 'Administrator', 'name': 'FL00716', + 'no_column': None, 'no_copy': 1, 'oldfieldname': 'trash_reason', 'oldfieldtype': 'Small Text',