Skip to content

Commit

Permalink
fix: re-create custom fields (backport #58) (#59)
Browse files Browse the repository at this point in the history
* fix: re-create custom fields

(cherry picked from commit 76ee1dd)

# Conflicts:
#	erpnext_germany/patches.txt

* chore: resolve conflicts

---------

Co-authored-by: barredterra <[email protected]>
  • Loading branch information
mergify[bot] and barredterra authored Feb 19, 2025
1 parent 26f03c9 commit 619ce75
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 @@ -7,7 +7,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 @@ -49,6 +49,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 @@ -5,3 +5,4 @@ execute:from erpnext_germany.install import after_install; after_install() # 7
erpnext_germany.patches.add_tax_exemption_reason_fields
execute:from erpnext_germany.install import insert_custom_records; insert_custom_records()
erpnext_germany.patches.dynamic_party_in_vat_id_check
execute:from erpnext_germany.install import make_custom_fields; make_custom_fields()

0 comments on commit 619ce75

Please sign in to comment.