From 17942c15b0dd477ae9591d594b7c822d150a2fd8 Mon Sep 17 00:00:00 2001 From: Shadrak Gurupnor <30501401+shadrak98@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:57:56 +0530 Subject: [PATCH] fix: parse date before save --- .../partner_approval_request/partner_approval_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/press/partner/doctype/partner_approval_request/partner_approval_request.py b/press/partner/doctype/partner_approval_request/partner_approval_request.py index c72601c8a3..9f2a274b62 100644 --- a/press/partner/doctype/partner_approval_request/partner_approval_request.py +++ b/press/partner/doctype/partner_approval_request/partner_approval_request.py @@ -53,7 +53,7 @@ def before_save(self): if not customer.partner_email: partner = frappe.get_doc("Team", self.partner) customer.partner_email = partner.partner_email - customer.partnership_date = self.creation + customer.partnership_date = frappe.utils.getdate(self.creation) team_members = [d.user for d in customer.team_members] if partner.user not in team_members: customer.append("team_members", {"user": partner.user})