commit | ffbfd2c60a8f8df298456717ed20cea91b3e1dbb | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@iwebnotes.com> | Tue Feb 21 18:15:31 2012 +0530 |
committer | Anand Doshi <anand@iwebnotes.com> | Tue Feb 21 18:15:31 2012 +0530 |
tree | 1d443c615d611ae091544414c860d13563e2731e | |
parent | 393d325e0081abe8e6e388bfd7adc904a393f818 [diff] |
Update feed on submission
diff --git a/erpnext/home/__init__.py b/erpnext/home/__init__.py index 75556e3..5f9c447 100644 --- a/erpnext/home/__init__.py +++ b/erpnext/home/__init__.py
@@ -66,7 +66,7 @@ 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)