Skip to content

Commit

Permalink
fix: only install customizations for cloud storage
Browse files Browse the repository at this point in the history
  • Loading branch information
agritheory committed Oct 4, 2023
1 parent f93d42e commit 16adc48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud_storage/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def load_customizations():
for file in files:
customizations = json.loads(Path(file).read_text())
for field in customizations.get("custom_fields"):
if field.get("module") != "Cloud Storage":
continue
existing_field = frappe.get_value("Custom Field", field.get("name"))
custom_field = (
frappe.get_doc("Custom Field", field.get("name"))
Expand All @@ -27,6 +29,8 @@ def load_customizations():
custom_field.flags.ignore_version = True
custom_field.save()
for prop in customizations.get("property_setters"):
if field.get("module") != "Cloud Storage":
continue
property_setter = frappe.get_doc(
{
"name": prop.get("name"),
Expand Down

0 comments on commit 16adc48

Please sign in to comment.