fixed test cases webnotes/wnframework#351
diff --git a/erpnext/home/__init__.py b/erpnext/home/__init__.py
index 36d7db5..e092a71 100644
--- a/erpnext/home/__init__.py
+++ b/erpnext/home/__init__.py
@@ -29,7 +29,6 @@
'Sales Order': ['[%(status)s] To %(customer_name)s worth %(currency)s %(grand_total_export)s', '#4169E1'],
# Purchase
- 'Material Request': ['%(supplier_name)s, %(supplier_type)s', '#6495ED'],
'Supplier': ['%(supplier_name)s, %(supplier_type)s', '#6495ED'],
'Purchase Order': ['[%(status)s] %(name)s To %(supplier_name)s for %(currency)s %(grand_total_import)s', '#4169E1'],
diff --git a/erpnext/hooks.txt b/erpnext/hooks.txt
index 69d2d8e..036e80f 100644
--- a/erpnext/hooks.txt
+++ b/erpnext/hooks.txt
@@ -27,7 +27,8 @@
bean_event *:on_cancel:webnotes.core.doctype.notification_count.notification_count.clear_doctype_notifications
bean_event *:on_trash:webnotes.core.doctype.notification_count.notification_count.clear_doctype_notifications
-bean_event Stock Entry:on_update:erpnext.stock.doctype.material_request.material_request.update_completed_qty
+bean_event Stock Entry:on_submit:erpnext.stock.doctype.material_request.material_request.update_completed_qty
+bean_event Stock Entry:on_cancel:erpnext.stock.doctype.material_request.material_request.update_completed_qty
standard_queries Warehouse:erpnext.stock.utils.get_warehouse_list
standard_queries Customer:erpnext.selling.utils.get_customer_list