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})