on delete contact update issue (#14770)

* on delete contact update isuue

remove contact from issue if the deleted contact exists

* moved issue update function to issue.py

* Update formatting and comment
This commit is contained in:
Shridhar Patil
2018-07-03 10:10:04 +05:30
committed by Nabin Hait
parent 27067b34e1
commit 4987c4ef53
2 changed files with 8 additions and 0 deletions

View File

@@ -210,6 +210,9 @@ doc_events = {
},
('Sales Invoice', 'Purchase Invoice', 'Delivery Note'): {
'validate': 'erpnext.regional.india.utils.set_place_of_supply'
},
"Contact":{
"on_trash": "erpnext.support.doctype.issue.issue.update_issue"
}
}