mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 06:45:11 +00:00
fix(test): missing repost allowed defaults
This commit is contained in:
@@ -22,6 +22,7 @@ def after_install():
|
||||
frappe.get_doc({"doctype": "Role", "role_name": "Analytics"}).insert()
|
||||
|
||||
set_single_defaults()
|
||||
setup_repost_defaults()
|
||||
create_print_setting_custom_fields()
|
||||
create_marketing_campaign_custom_fields()
|
||||
create_custom_company_links()
|
||||
@@ -74,6 +75,13 @@ def set_single_defaults():
|
||||
setup_currency_exchange()
|
||||
|
||||
|
||||
def setup_repost_defaults():
|
||||
accounts_settings = frappe.get_doc("Accounts Settings")
|
||||
for x in frappe.get_hooks("repost_allowed_doctypes"):
|
||||
accounts_settings.append("repost_allowed_types", {"document_type": x})
|
||||
accounts_settings.save()
|
||||
|
||||
|
||||
def setup_currency_exchange():
|
||||
ces = frappe.get_single("Currency Exchange Settings")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user