Hi, why does our doc.naming_series only shows “SR-” It doesn’t show the number of the series like "SR-0001. And our schedule date is on a table link to a child table and it doesn’t work it only emails us error messages.
Please refer to this:
Stock Request
Transaction {{ doc.naming_series }}
New Stock have been requested
{% if comments %}
Last comment: {{ comments[-1].comment }} by {{ comments[-1].by }}
{% endif %}
Details
- Requested By: {{ doc.request_by }}
- Requested For: {{ doc.requested_for }}
- Date Needed: {{ doc.schedule_date }}
Here is the output of the email:
Stock Request
Transaction SR-
New Stock have been requested
Details
Requested By: EMP/0019
Date Needed: {{ no such element: frappe.model.document.Document object[‘schedule_date’] }}