mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
removed next_contact in quotation, fixed regex to convert relative links to absolute
This commit is contained in:
16
patches/december_2012/remove_quotation_next_contact.py
Normal file
16
patches/december_2012/remove_quotation_next_contact.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
from webnotes.widgets.form.assign_to import add
|
||||
for t in webnotes.conn.sql("""select * from tabQuotation
|
||||
where ifnull(contact_by, '')!=''""", as_dict=1):
|
||||
add({
|
||||
'doctype': "Quotation",
|
||||
'name': t['name'],
|
||||
'assign_to': t['contact_by'],
|
||||
'assigned_by': t['owner'],
|
||||
'description': "Contact regarding quotation.",
|
||||
'date': t['creation'],
|
||||
"no_notification": True
|
||||
})
|
||||
@@ -745,4 +745,8 @@ patch_list = [
|
||||
'patch_module': 'patches.december_2012',
|
||||
'patch_file': 'clear_web_cache',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.december_2012',
|
||||
'patch_file': 'remove_quotation_next_contact',
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user