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 00000000000..b884ee4291a --- /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 e3eca5ac54e..b2983b52bcb 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