Series and schedule date not working on email alert

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’] }}

Hi @kelscey90 ,

Use doc.name instead of doc.naming_series

Put custom field schedule_date on the parent doctype.

Thanks, Rohit

1 Like

Use doc.name instead of doc.naming_series

Oh yeah. That works!

Put custom field schedule_date on the parent doctype.

Is it not possible to be at the child’s table? I really need it to stay there.