Skip to content

Commit

Permalink
fix: Sync customization on first install if not sync_on_migrate
Browse files Browse the repository at this point in the history
If not sync_on_migrate right now this code isn't doing anything :hanky:
  • Loading branch information
ankush committed Apr 11, 2024
1 parent 12a8e9e commit 51d41ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frappe/modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""):
Expand Down

0 comments on commit 51d41ea

Please sign in to comment.