From 51d41ea6df24627dd36dcf03efbf348001503303 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 11 Apr 2024 18:29:43 +0530 Subject: [PATCH] fix: Sync customization on first install if not sync_on_migrate If not sync_on_migrate right now this code isn't doing anything :hanky: --- frappe/modules/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frappe/modules/utils.py b/frappe/modules/utils.py index 066121906f..adcc55e4a8 100644 --- a/frappe/modules/utils.py +++ b/frappe/modules/utils.py @@ -110,6 +110,8 @@ def sync_customizations(app=None): data = json.loads(f.read()) if data.get("sync_on_migrate"): sync_customizations_for_doctype(data, folder, fname) + elif frappe.flags.in_install and app: + sync_customizations_for_doctype(data, folder, fname) def sync_customizations_for_doctype(data: dict, folder: str, filename: str = ""):