Cannot delete Employee because of Birthday Event

Hi guys, 

As the title says, currently if we try to delete employee. 
Error will be pop up saying there are Events linked to this Employee. However, using the normal link button (or get_linked_docs) doesn't yield any thing. 

So in order to delete the Employee, I will need to go into Event List, check out what event it is linked and delete it manually... 
I think it shouldn't be this way, should I raise an issue ?



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2a1585ce-539d-4dc4-81e5-0fbd310ad2f9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Yes, please raise an issue for this. Birthday events should be deleted automatically on deletion of employee.
If you are a developer, you can write `on_trash` function for Employee where you can delete those events.

On Sep 10, 2014, at 12:53 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:

Hi guys, 

As the title says, currently if we try to delete employee. 
Error will be pop up saying there are Events linked to this Employee. However, using the normal link button (or get_linked_docs) doesn't yield any thing. 

So in order to delete the Employee, I will need to go into Event List, check out what event it is linked and delete it manually... 
I think it shouldn't be this way, should I raise an issue ?



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2a1585ce-539d-4dc4-81e5-0fbd310ad2f9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/79055406-8E8E-4A8B-B0FB-8429C9378F91%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.