feed fix
This commit is contained in:
parent
486ec28b85
commit
3a50b342ef
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
*.pyc
|
*.pyc
|
||||||
*.comp.js
|
*.comp.js
|
||||||
|
*.txt
|
||||||
.DS_Store
|
.DS_Store
|
||||||
server_tools
|
server_tools
|
||||||
patch.log
|
patch.log
|
||||||
|
|||||||
@ -3,7 +3,7 @@ from webnotes import msgprint
|
|||||||
|
|
||||||
feed_dict = {
|
feed_dict = {
|
||||||
# Project
|
# Project
|
||||||
'Project': ['[%(status)s] %(subject)s', '#000080'],
|
'Project': ['[%(status)s]', '#000080'],
|
||||||
|
|
||||||
# Sales
|
# Sales
|
||||||
'Lead': ['%(lead_name)s', '#000080'],
|
'Lead': ['%(lead_name)s', '#000080'],
|
||||||
@ -91,8 +91,11 @@ def update_feed1(doc):
|
|||||||
subject = subject % doc.fields
|
subject = subject % doc.fields
|
||||||
make_feed(doc, subject, color)
|
make_feed(doc, subject, color)
|
||||||
|
|
||||||
def update_feed(doc):
|
def update_feed(doc, method):
|
||||||
"adds a new feed"
|
"adds a new feed"
|
||||||
|
if method=='validate':
|
||||||
|
return
|
||||||
|
|
||||||
subject, color = feed_dict.get(doc.doctype, [None, None])
|
subject, color = feed_dict.get(doc.doctype, [None, None])
|
||||||
if subject:
|
if subject:
|
||||||
subject = subject % doc.fields
|
subject = subject % doc.fields
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
{
|
{
|
||||||
'creation': '2010-08-08 17:08:55',
|
'creation': '2010-08-08 17:08:55',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-01 17:43:29',
|
'modified': '2011-07-06 11:42:34',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user