Email notification with outdated content / setting a delay possible? #23682
Labels
Bug
This is a bug (something does not work as expected)
Issue Stale (automatic label)
This issue is stale because it has been open 1 year with no activity. Remove this label to keep open
Bug
I have created an automatic email notification with the trigger "Invoice released".
Unfortunately, the mail always contains outdated content, both in the variables and in the PDF attachment.
Example:
Newly created invoice is released for the first time.
The mail still contains the draft designation "(PROV4)" in the text (for the variable "REF") instead of the correct invoice number.
Also the PDF still has the name "(PROV4)" and the content is still the draft (no invoice number, watermark, etc.).
My guess is that the creation of the mail happens faster than the creation of the document and the associated values and therefore the old status still ends up in the mail.
Is there a solution for this?
Is there perhaps a possibility to set a delay of a few seconds for the creation of the mail, so that all the data is available for sure?
Environment Version
16.0.3
Environment OS
Debian 11 - Linux dolitest 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00:00Z) x86_64
Environment Web server
Apache/2.4.54 (Debian)
Environment PHP
7.4.33
Environment Database
MariaDB 5.5.5-10.5.18-MariaDB-0+deb11u1
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: