From 6024c4a077caf5d00fe4017f8a6048953a7253b3 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Tue, 10 Mar 2026 11:44:02 +0530 Subject: [PATCH] fix: patch failing --- .../patches/v16_0/complete_onboarding_steps_for_older_sites.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/patches/v16_0/complete_onboarding_steps_for_older_sites.py b/erpnext/patches/v16_0/complete_onboarding_steps_for_older_sites.py index 73d50a976ee..7230334266e 100644 --- a/erpnext/patches/v16_0/complete_onboarding_steps_for_older_sites.py +++ b/erpnext/patches/v16_0/complete_onboarding_steps_for_older_sites.py @@ -13,6 +13,9 @@ def execute(): return company_creation = frappe.get_all("Company", fields=["creation"], order_by="creation asc", limit=1) + if not company_creation: + return + days_diff = date_diff(getdate(today()), getdate(company_creation[0].creation)) if days_diff > 15: