We are using the Workflow module in ERPNext to monitor some Document states (like Initiated, Started, Ending, Closed, etc.). There are Workflow State fields named ‘Update field’ and ‘Update Value’. I would like to update the ‘actual_end_date’ field in a Document when state changes to ‘Closed’.
What I tried:
Update Field: actual_end_date
Update Value: frappe.utils.nowdate()
Update Field: actual_end_date
Update Value: datetime.datetime.now()
But this results in an error:
ValueError: ('Unknown string format:', 'datetime.datetime.now()')
Does anyone know what I’m doing wrong? How can I use the today date/time inside the Workflow States?
Thanks.