From 9b8fad2baa921c81e5c063e9c98b4d041592693c Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 25 Jul 2011 14:45:42 +0530 Subject: [PATCH] support ticket patch --- patches/patch.py | 3 +- .../doctype/support_ticket/support_ticket.txt | 67 +++++++------------ 2 files changed, 28 insertions(+), 42 deletions(-) diff --git a/patches/patch.py b/patches/patch.py index e3d2f98d90..47f39bf21d 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1320,4 +1320,5 @@ def execute(patch_no): from webnotes.model import delete_doc delete_doc('DocType', 'Support Email Settings') - reload_doc('support','doctype','support_ticket') \ No newline at end of file + reload_doc('support','doctype','support_ticket') + sql("delete from tabDocField where fieldname='problem_description' and parent='Support Ticket'") \ No newline at end of file diff --git a/support/doctype/support_ticket/support_ticket.txt b/support/doctype/support_ticket/support_ticket.txt index 211f51240e..1b11a72422 100644 --- a/support/doctype/support_ticket/support_ticket.txt +++ b/support/doctype/support_ticket/support_ticket.txt @@ -3,16 +3,16 @@ # These values are common in all dictionaries { - 'creation': '2011-05-23 14:50:46', + 'creation': '2011-05-23 09:01:10', 'docstatus': 0, - 'modified': '2011-07-06 09:25:53', + 'modified': '2011-07-25 14:45:28', 'modified_by': 'Administrator', 'owner': 'Administrator' }, # These values are common for all DocType { - '_last_update': '1309771514', + '_last_update': '1311584009', 'allow_trash': 1, 'autoname': 'SUP.######', 'colour': 'White:FFF', @@ -24,8 +24,8 @@ 'server_code_error': ' ', 'show_in_menu': 0, 'subject': '%(subject)s', - 'tag_fields': 'status', - 'version': 150 + 'tag_fields': 'status,allocated_to', + 'version': 144 }, # These values are common for all DocField @@ -131,7 +131,7 @@ { 'doctype': 'DocField', 'fieldname': 'subject', - 'fieldtype': 'Small Text', + 'fieldtype': 'Text', 'idx': 2, 'in_filter': 1, 'label': 'Subject', @@ -168,24 +168,12 @@ 'reqd': 0 }, - # DocField - { - 'doctype': 'DocField', - 'fieldname': 'problem_description', - 'fieldtype': 'Text', - 'idx': 5, - 'label': 'Problem Description', - 'oldfieldname': 'problem_description', - 'oldfieldtype': 'Text', - 'permlevel': 0 - }, - # DocField { 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldtype': 'HTML', - 'idx': 6, + 'idx': 5, 'label': 'Thread HTML', 'permlevel': 1 }, @@ -196,7 +184,7 @@ 'doctype': 'DocField', 'fieldname': 'new_response', 'fieldtype': 'Text', - 'idx': 7, + 'idx': 6, 'label': 'New Response', 'permlevel': 0 }, @@ -206,9 +194,8 @@ 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldtype': 'Button', - 'idx': 8, + 'idx': 7, 'label': 'Send', - 'options': 'send_response', 'permlevel': 0 }, @@ -217,7 +204,7 @@ 'colour': 'White:FFF', 'doctype': 'DocField', 'fieldtype': 'Section Break', - 'idx': 9, + 'idx': 8, 'label': 'Additional Info', 'permlevel': 1 }, @@ -227,7 +214,7 @@ 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldtype': 'Column Break', - 'idx': 10, + 'idx': 9, 'oldfieldtype': 'Column Break', 'permlevel': 1, 'width': '50%' @@ -239,7 +226,7 @@ 'doctype': 'DocField', 'fieldname': 'customer', 'fieldtype': 'Link', - 'idx': 11, + 'idx': 10, 'in_filter': 1, 'label': 'Customer', 'oldfieldname': 'customer', @@ -257,7 +244,7 @@ 'doctype': 'DocField', 'fieldname': 'customer_name', 'fieldtype': 'Data', - 'idx': 12, + 'idx': 11, 'in_filter': 1, 'label': 'Customer Name', 'oldfieldname': 'customer_name', @@ -272,7 +259,7 @@ 'doctype': 'DocField', 'fieldname': 'address_display', 'fieldtype': 'Small Text', - 'idx': 13, + 'idx': 12, 'label': 'Address', 'permlevel': 2 }, @@ -282,7 +269,7 @@ 'doctype': 'DocField', 'fieldname': 'contact_display', 'fieldtype': 'Data', - 'idx': 14, + 'idx': 13, 'label': 'Contact Name', 'permlevel': 2 }, @@ -292,7 +279,7 @@ 'doctype': 'DocField', 'fieldname': 'contact_mobile', 'fieldtype': 'Data', - 'idx': 15, + 'idx': 14, 'label': 'Mobile No', 'permlevel': 2 }, @@ -302,7 +289,7 @@ 'doctype': 'DocField', 'fieldname': 'contact_email', 'fieldtype': 'Data', - 'idx': 16, + 'idx': 15, 'label': 'Contact Email', 'oldfieldname': 'contact_no', 'oldfieldtype': 'Data', @@ -315,7 +302,7 @@ 'doctype': 'DocField', 'fieldname': 'opening_date', 'fieldtype': 'Date', - 'idx': 17, + 'idx': 16, 'label': 'Opening Date', 'no_copy': 1, 'oldfieldname': 'opening_date', @@ -328,7 +315,7 @@ 'doctype': 'DocField', 'fieldname': 'opening_time', 'fieldtype': 'Time', - 'idx': 18, + 'idx': 17, 'label': 'Opening Time', 'no_copy': 1, 'oldfieldname': 'opening_time', @@ -341,19 +328,18 @@ 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldtype': 'Column Break', - 'idx': 19, + 'idx': 18, 'oldfieldtype': 'Column Break', 'permlevel': 1 }, # DocField { - 'colour': 'White:FFF', 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldname': 'allocated_to', 'fieldtype': 'Link', - 'idx': 20, + 'idx': 19, 'in_filter': 1, 'label': 'Allocated To', 'oldfieldname': 'allocated_to', @@ -368,8 +354,8 @@ 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldname': 'resolution_details', - 'fieldtype': 'Small Text', - 'idx': 21, + 'fieldtype': 'Text', + 'idx': 20, 'label': 'Resolution Details', 'no_copy': 1, 'oldfieldname': 'resolution_details', @@ -379,12 +365,11 @@ # DocField { - 'colour': 'White:FFF', 'depends_on': 'eval:!doc.__islocal', 'doctype': 'DocField', 'fieldname': 'resolution_date', 'fieldtype': 'Date', - 'idx': 22, + 'idx': 21, 'in_filter': 0, 'label': 'Resolution Date', 'no_copy': 1, @@ -400,7 +385,7 @@ 'doctype': 'DocField', 'fieldname': 'resolution_time', 'fieldtype': 'Time', - 'idx': 23, + 'idx': 22, 'label': 'Resolution Time', 'oldfieldname': 'resolution_time', 'oldfieldtype': 'Time', @@ -414,7 +399,7 @@ 'fieldname': 'content_type', 'fieldtype': 'Data', 'hidden': 1, - 'idx': 24, + 'idx': 23, 'label': 'Content Type', 'permlevel': 0 }