Posting Date Defaults to List View Filter Date Instead of Today

Hi Team,

I have a custom DocType called LS Nav Return. It contains a Posting Date field (Date type) with the default value set to Today, along with other fields such as Sales Invoice.

I noticed an issue in the List View. When I apply a date filter (for example, Posting Date = a specific date) and then click Add New to create a new LS Nav Return, the Posting Date in the new document is automatically populated with the filtered date instead of today’s date.

Why is this happening? Is Frappe intentionally passing the List View filter values to the new document, or is there a way to ensure that the Posting Date always defaults to today’s date when creating a new document?

Any guidance would be appreciated.

Thank you.

Yes

A server side script should do the trick.