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:
This commit is contained in:
Ankush Menat 2024-04-11 18:29:43 +05:30
parent 12a8e9e666
commit 51d41ea6df

View file

@ -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 = ""):