removed make_feed() function
This commit is contained in:
parent
11b2c0305c
commit
0ad3235c1f
@ -27,11 +27,6 @@ class DocType:
|
|||||||
cmt.comment_date = nowdate()
|
cmt.comment_date = nowdate()
|
||||||
cmt.comment_time = time.strftime('%H:%M')
|
cmt.comment_time = time.strftime('%H:%M')
|
||||||
cmt.save(1)
|
cmt.save(1)
|
||||||
|
|
||||||
try:
|
|
||||||
get_obj('Feed Control').upate_comment_in_feed(args['comment_doctype'], args['comment_docname'])
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception
|
raise Exception
|
||||||
@ -39,7 +34,3 @@ class DocType:
|
|||||||
def remove_comment(self, args):
|
def remove_comment(self, args):
|
||||||
args = json.loads(args)
|
args = json.loads(args)
|
||||||
sql("delete from `tabComment Widget Record` where name=%s",args['id'])
|
sql("delete from `tabComment Widget Record` where name=%s",args['id'])
|
||||||
|
|
||||||
try:
|
|
||||||
get_obj('Feed Control').upate_comment_in_feed(args['dt'], args['dn'])
|
|
||||||
except: pass
|
|
||||||
|
@ -411,9 +411,3 @@ class DocType:
|
|||||||
new_tot_income = cint(self.doc.tax_tot_income) + cint(self.doc.edu_cess) - (cint(ret_income_tax[0][0]) or 0)
|
new_tot_income = cint(self.doc.tax_tot_income) + cint(self.doc.edu_cess) - (cint(ret_income_tax[0][0]) or 0)
|
||||||
|
|
||||||
self.doc.tax_per_month = new_tot_income/cint(self.doc.rem_months)
|
self.doc.tax_per_month = new_tot_income/cint(self.doc.rem_months)
|
||||||
|
|
||||||
# on update
|
|
||||||
def on_update(self):
|
|
||||||
obj = get_obj('Feed Control', 'Feed Control')
|
|
||||||
|
|
||||||
obj.make_feed(self.doc)
|
|
@ -115,12 +115,6 @@ class DocType(TransactionBase):
|
|||||||
ch = addchild(ev, 'event_individuals', 'Event User', 0)
|
ch = addchild(ev, 'event_individuals', 'Event User', 0)
|
||||||
ch.person = d
|
ch.person = d
|
||||||
ch.save(1)
|
ch.save(1)
|
||||||
|
|
||||||
#user_list = ['Sales Manager', 'Sales User']
|
|
||||||
#for d in user_list:
|
|
||||||
# ch = addchild(ev, 'event_individuals', 'Event User', 0)
|
|
||||||
# ch.person = d
|
|
||||||
# ch.save()
|
|
||||||
|
|
||||||
#--------------Validation For Last Contact Date-----------------
|
#--------------Validation For Last Contact Date-----------------
|
||||||
# ====================================================================================================================
|
# ====================================================================================================================
|
||||||
@ -171,8 +165,6 @@ class DocType(TransactionBase):
|
|||||||
raise Exception
|
raise Exception
|
||||||
else:
|
else:
|
||||||
set(self.doc, 'status', 'Cancelled')
|
set(self.doc, 'status', 'Cancelled')
|
||||||
|
|
||||||
get_obj('Feed Control').make_feed(self.doc, 'cancelled')
|
|
||||||
|
|
||||||
# declare as enquiry lost
|
# declare as enquiry lost
|
||||||
#---------------------------
|
#---------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user