Dears,
I have created a custom record for invoices named InvoiceHead and added a user event script with afterSubmit entry point that creates a standard invoice record