because i have create a new apps called Giro , and m Giro have link to JV … so its make they cant be cancelled…i want when the GIro is cancelled so the JV is cancelled as well and other wise…
here was my problem…
when i want to cancel the JV its error and said its link to the Giro…
when i want to cancel the GIro its error and said its linked to a JV
im tried to have on_trash fucntion on giro.py but its doest seem to be called… and im tried to have hooks :
doc_events = {
“Journal Voucher”: {
“on_submit”: “accounting_addons.giro.doctype.giro.giro.on_jv_update”, “on_cancel”: “accounting_addons.giro.doctype.giro.giro.on_trash_jv”
}
}
and that seems to be not being called to…im intended to unlink the document on JV cancel this way…