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:
parent
12a8e9e666
commit
51d41ea6df
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = ""):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue