From 3cb7cf497b9b94941153af84eb508ba1967037cd Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 14 Aug 2013 18:55:50 +0530 Subject: [PATCH 1/4] [fix] [minor] project query for purchase receipt --- stock/doctype/purchase_receipt/purchase_receipt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/purchase_receipt/purchase_receipt.js b/stock/doctype/purchase_receipt/purchase_receipt.js index bdf50ee6694..d0e58dfe609 100644 --- a/stock/doctype/purchase_receipt/purchase_receipt.js +++ b/stock/doctype/purchase_receipt/purchase_receipt.js @@ -127,7 +127,7 @@ cur_frm.cscript.new_contact = function(){ cur_frm.fields_dict['purchase_receipt_details'].grid.get_field('project_name').get_query = function(doc, cdt, cdn) { return{ filters:[ - ['project', 'status', 'not in', 'Completed, Cancelled'] + ['Project', 'status', 'not in', 'Completed, Cancelled'] ] } } From 894341be720d7b0d6367fe24222b4ba274a5a239 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 14 Aug 2013 19:24:36 +0530 Subject: [PATCH 2/4] [fix] [minor] price list rename patch --- patches/august_2013/p02_rename_price_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/august_2013/p02_rename_price_list.py b/patches/august_2013/p02_rename_price_list.py index a66a0c24f44..a49adb5b655 100644 --- a/patches/august_2013/p02_rename_price_list.py +++ b/patches/august_2013/p02_rename_price_list.py @@ -23,7 +23,7 @@ def execute(): if t[2] in table_columns and t[1] in table_columns: # already reloaded, so copy into new column and drop old column webnotes.conn.sql("""update `tab%s` set `%s`=`%s`""" % (t[0], t[2], t[1])) - webnotes.conn.sql("""alter table `tab%s` drop column `%s`""" % (t[0], t[1])) + webnotes.conn.sql_ddl("""alter table `tab%s` drop column `%s`""" % (t[0], t[1])) elif t[1] in table_columns: webnotes.conn.sql_ddl("alter table `tab%s` change `%s` `%s` varchar(180)" % t) From 3ead4a6e08fd87b5c480f4dd7bfe265cc6682bf6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Aug 2013 14:30:46 +0530 Subject: [PATCH 3/4] [fix] [minor] reload event on birthday patch --- patches/august_2013/p05_employee_birthdays.py | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/august_2013/p05_employee_birthdays.py b/patches/august_2013/p05_employee_birthdays.py index 9ad0c99151d..0dc15cbf579 100644 --- a/patches/august_2013/p05_employee_birthdays.py +++ b/patches/august_2013/p05_employee_birthdays.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals import webnotes def execute(): + webnotes.reload_doc("core", "doctype", "event") webnotes.conn.sql("""delete from `tabEvent` where repeat_on='Every Year' and ref_type='Employee'""") for employee in webnotes.conn.sql_list("""select name from `tabEmployee` where status='Active' and ifnull(date_of_birth, '')!=''"""): From f32a4643e5481419dd2e040b8e08e9c2a7b43fcc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Aug 2013 14:39:12 +0530 Subject: [PATCH 4/4] [fix] [minor] reload shopping_cart_price_list --- patches/august_2013/p02_rename_price_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/august_2013/p02_rename_price_list.py b/patches/august_2013/p02_rename_price_list.py index a49adb5b655..0b1c4d0047a 100644 --- a/patches/august_2013/p02_rename_price_list.py +++ b/patches/august_2013/p02_rename_price_list.py @@ -5,6 +5,8 @@ from __future__ import unicode_literals import webnotes def execute(): + webnotes.reload_doc("website", "doctype", "shopping_cart_price_list") + for t in [ ("Supplier Quotation", "price_list_name", "buying_price_list"), ("Purchase Order", "price_list_name", "buying_price_list"),