How to Autocreate or Autolink Notes to Documents in ERPNext

Hi guys,

Currently, when adding a Note (in Tools) in ERPNext, one has to manually link the Note to a document:

I have previously sought help on this before. See How to Link Notes to Documents in ERPNext.

We have a need to automatically link the Note to a document (e.g., Sales Invoice) in the system. So that, when the Sales Invoice document is saved/submitted, the Note gets created automatically for on-screen displays when users access the system or refresh their pages.

Is this doable, even if by coding?

Your kind suggestions/assistance appreciated.