Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
d5bf5153fa
@ -1,4 +1,7 @@
|
|||||||
erpnext.updates = [
|
erpnext.updates = [
|
||||||
|
["27th November 2012", [
|
||||||
|
"Communication: Made common communication thread and added it in Lead, Contact.",
|
||||||
|
]],
|
||||||
["26th November 2012", [
|
["26th November 2012", [
|
||||||
"Email: Added User Signature",
|
"Email: Added User Signature",
|
||||||
"Support Ticket: Added link to Lead / Contact. If incoming ticket is not from an existing Lead / Contact, create a new Lead",
|
"Support Ticket: Added link to Lead / Contact. If incoming ticket is not from an existing Lead / Contact, create a new Lead",
|
||||||
|
|||||||
14
patches/november_2012/cancelled_bom_patch.py
Normal file
14
patches/november_2012/cancelled_bom_patch.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import webnotes
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
cancelled_boms = webnotes.conn.sql("""select name from `tabBOM`
|
||||||
|
where docstatus = 2""")
|
||||||
|
|
||||||
|
for bom in cancelled_boms:
|
||||||
|
webnotes.conn.sql("""update `tabBOM` set is_default=0, is_active='No'
|
||||||
|
where name=%s""", (bom[0],))
|
||||||
|
|
||||||
|
webnotes.conn.sql("""update `tabItem` set default_bom=null
|
||||||
|
where default_bom=%s""", (bom[0],))
|
||||||
|
|
||||||
|
|
||||||
@ -683,6 +683,10 @@ patch_list = [
|
|||||||
'patch_module': 'patches.november_2012',
|
'patch_module': 'patches.november_2012',
|
||||||
'patch_file': 'support_ticket_response_to_communication',
|
'patch_file': 'support_ticket_response_to_communication',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.november_2012',
|
||||||
|
'patch_file': 'cancelled_bom_patch',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'patch_module': 'patches.november_2012',
|
'patch_module': 'patches.november_2012',
|
||||||
'patch_file': 'communication_sender_and_recipient',
|
'patch_file': 'communication_sender_and_recipient',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user