From a92646857486f52b9a6d145d306ee15f60ea9e71 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 17 May 2012 18:12:32 +0530 Subject: [PATCH] reload so pending items --- erpnext/patches/may_2012/reload_so_pending_items.py | 7 +++++++ erpnext/patches/patch_list.py | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 erpnext/patches/may_2012/reload_so_pending_items.py diff --git a/erpnext/patches/may_2012/reload_so_pending_items.py b/erpnext/patches/may_2012/reload_so_pending_items.py new file mode 100644 index 0000000000..b884ee4291 --- /dev/null +++ b/erpnext/patches/may_2012/reload_so_pending_items.py @@ -0,0 +1,7 @@ +def execute(): + import webnotes + from webnotes.model import delete_doc + delete_doc("Search Criteria", "sales_order_pending_items1") + + from webnotes.modules import reload_doc + reload_doc('selling', 'search_criteria', 'sales_order_pending_items') \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index e3eca5ac54..b2983b52bc 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -357,5 +357,10 @@ patch_list = [ 'patch_file': 'std_pf_readonly', 'description': 'Make standard print formats readonly for system manager' }, + { + 'patch_module': 'patches.may_2012', + 'patch_file': 'reload_so_pending_items', + 'description': 'reload so pending items' + }, -] +] \ No newline at end of file