From ffbfd2c60a8f8df298456717ed20cea91b3e1dbb Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 21 Feb 2012 18:15:31 +0530 Subject: [PATCH] Update feed on submission --- erpnext/home/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/home/__init__.py b/erpnext/home/__init__.py index 75556e39370..5f9c44737a8 100644 --- a/erpnext/home/__init__.py +++ b/erpnext/home/__init__.py @@ -66,7 +66,7 @@ def make_feed(feedtype, doctype, name, owner, subject, color): def update_feed(doc, method=None): "adds a new feed" - if method=='on_update': + if method in ['on_update', 'on_submit']: subject, color = feed_dict.get(doc.doctype, [None, None]) if subject: make_feed('', doc.doctype, doc.name, doc.owner, subject % doc.fields, color)