Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
c248e2769e
5
patches/december_2012/replace_createlocal.py
Normal file
5
patches/december_2012/replace_createlocal.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
webnotes.conn.sql("""update `tabCustom Script`
|
||||||
|
set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')
|
||||||
|
where script_type='Client'""")
|
||||||
@ -737,4 +737,8 @@ patch_list = [
|
|||||||
'patch_module': 'patches.december_2012',
|
'patch_module': 'patches.december_2012',
|
||||||
'patch_file': 'file_list_rename',
|
'patch_file': 'file_list_rename',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.december_2012',
|
||||||
|
'patch_file': 'replace_createlocal',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
@ -5,7 +5,6 @@ wn.doclistviews['Task'] = wn.views.ListView.extend({
|
|||||||
this.fields = this.fields.concat([
|
this.fields = this.fields.concat([
|
||||||
'`tabTask`.subject',
|
'`tabTask`.subject',
|
||||||
'`tabTask`.project',
|
'`tabTask`.project',
|
||||||
'`tabTask`.modified',
|
|
||||||
'`tabTask`.status',
|
'`tabTask`.status',
|
||||||
'`tabTask`.opening_date',
|
'`tabTask`.opening_date',
|
||||||
'`tabTask`.priority',
|
'`tabTask`.priority',
|
||||||
|
|||||||
@ -135,7 +135,7 @@ class SupportMailbox(POP3Mailbox):
|
|||||||
from webnotes.utils.file_manager import save_file, add_file_list
|
from webnotes.utils.file_manager import save_file, add_file_list
|
||||||
for attachment in attachment_list:
|
for attachment in attachment_list:
|
||||||
fid = save_file(attachment['filename'], attachment['content'], 'Support')
|
fid = save_file(attachment['filename'], attachment['content'], 'Support')
|
||||||
status = add_file_list('Support Ticket', doc.name, attachment['filename'], fid)
|
status = add_file_list('Support Ticket', doc.name, fid, fid)
|
||||||
if not status:
|
if not status:
|
||||||
doc.description = doc.description \
|
doc.description = doc.description \
|
||||||
+ "\nCould not attach: " + cstr(attachment['filename'])
|
+ "\nCould not attach: " + cstr(attachment['filename'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user