Next Contact Date cannot be in the past

Hello,

When i try to edit bulk leads i always get this message

Next Contact Date cannot be in the past

This happens because i have next contact and end on dates filled with old data

can i turn off this message or allow in the system to save dates in the past

thanks

as expected no reply

Not everybody is checking the forum daily.
A comment like this, at least for me, does not help to raise motivation to invest time and effort to support you. If you want fast and reliable support, I guess you can find somebody to provide it professionally.

You can check:
erpnext/lead.py at develop · frappe/erpnext (github.com)

def validate_contact_date(self):
	if self.contact_date and getdate(self.contact_date) < getdate(nowdate()):
		frappe.throw(_("Next Contact Date cannot be in the past"))

So you can either hardcode the change in the file, or contribute to the community by raising a pull request with the according change to have this check as optional.

EDIT: alternatively, does it work if you remove the next/end dates in an extra step before?

Hello,

thanks for your reply,
it’s not the first time to open a discussion & receive no comment from the community

i already found it out by my self in that directory

erpnext/lead.py

if self.contact_date and getdate(self.contact_date) < getdate(nowdate()):
frappe.throw(_(“Next Contact Date cannot be in the past”))

removing that code make it work

i will develop the code to make skipping past date allowed and i will contribute it to the community , as the CRM module needs a lot of customization to be strong , it’s really poor

thanks for your help anyway