Skip to content

Commit

Permalink
Merge pull request #58 from alyf-de/recreate-custom-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Feb 19, 2025
2 parents 0102430 + 76ee1dd commit f78d19c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext_germany/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def after_install():
create_custom_fields(get_custom_fields())
make_custom_fields()
make_property_setters()
import_data()
insert_custom_records()
Expand Down Expand Up @@ -57,6 +57,10 @@ def make_property_setters():
make_property_setter(doctype, *property_setter, for_doctype)


def make_custom_fields():
create_custom_fields(get_custom_fields())


def insert_custom_records():
for custom_record in frappe.get_hooks("germany_custom_records"):
filters = custom_record.copy()
Expand Down
1 change: 1 addition & 0 deletions erpnext_germany/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ erpnext_germany.patches.change_position_of_register_info
erpnext_germany.patches.dynamic_party_in_vat_id_check
erpnext_germany.patches.add_business_trip_to_expense_claim
erpnext_germany.patches.import_business_trip_regions
execute:from erpnext_germany.install import make_custom_fields; make_custom_fields()

0 comments on commit f78d19c

Please sign in to comment.