From 91e9822f65854469766bb78029e44239cf087fa3 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 16 Dec 2013 18:43:42 +0530 Subject: [PATCH] fixed test cases webnotes/wnframework#351 --- erpnext/home/__init__.py | 1 - erpnext/hooks.txt | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/home/__init__.py b/erpnext/home/__init__.py index 36d7db57ca8..e092a71ff4e 100644 --- a/erpnext/home/__init__.py +++ b/erpnext/home/__init__.py @@ -29,7 +29,6 @@ feed_dict = { '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 69d2d8e43fe..036e80f7d69 100644 --- a/erpnext/hooks.txt +++ b/erpnext/hooks.txt @@ -27,7 +27,8 @@ bean_event *:on_update:webnotes.core.doctype.notification_count.notification_ 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