mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
feed fix
This commit is contained in:
@@ -3,7 +3,7 @@ from webnotes import msgprint
|
||||
|
||||
feed_dict = {
|
||||
# Project
|
||||
'Project': ['[%(status)s] %(subject)s', '#000080'],
|
||||
'Project': ['[%(status)s]', '#000080'],
|
||||
|
||||
# Sales
|
||||
'Lead': ['%(lead_name)s', '#000080'],
|
||||
@@ -91,8 +91,11 @@ def update_feed1(doc):
|
||||
subject = subject % doc.fields
|
||||
make_feed(doc, subject, color)
|
||||
|
||||
def update_feed(doc):
|
||||
def update_feed(doc, method):
|
||||
"adds a new feed"
|
||||
if method=='validate':
|
||||
return
|
||||
|
||||
subject, color = feed_dict.get(doc.doctype, [None, None])
|
||||
if subject:
|
||||
subject = subject % doc.fields
|
||||
|
||||
Reference in New Issue
Block a user