updated install.py
This commit is contained in:
parent
15f57d57d7
commit
ab5965235f
2 changed files with 4 additions and 1 deletions
|
|
@ -255,7 +255,8 @@ fixtures = [
|
||||||
|
|
||||||
# These don't have reliable flags → export all
|
# These don't have reliable flags → export all
|
||||||
{"dt": "Custom Field"},
|
{"dt": "Custom Field"},
|
||||||
{"dt": "Property Setter"},
|
{"dt": "Property Setter",
|
||||||
|
"filters": [["name", "not in", ["Service Appointment-service_address", "Service Appointment-customer", "Service Appointment-project", "Service Appointment-project_template", "Service Appointment"]],]},
|
||||||
{"dt": "Client Script"},
|
{"dt": "Client Script"},
|
||||||
{"dt": "Server Script"},
|
{"dt": "Server Script"},
|
||||||
# {"dt": "Item"}
|
# {"dt": "Item"}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import holidays
|
||||||
from datetime import date, timedelta
|
from datetime import date, timedelta
|
||||||
from erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts import create_charts
|
from erpnext.accounts.doctype.account.chart_of_accounts.chart_of_accounts import create_charts
|
||||||
from erpnext.setup.doctype.company.company import Company
|
from erpnext.setup.doctype.company.company import Company
|
||||||
|
from erpnext.setup.setup_wizard.setup_wizard import setup_defaults
|
||||||
def after_install():
|
def after_install():
|
||||||
# create_module()
|
# create_module()
|
||||||
# add_custom_fields()
|
# add_custom_fields()
|
||||||
|
|
@ -32,6 +33,7 @@ def after_install():
|
||||||
print("\n✅ Custom UI installation complete. Please run `bench migrate` to apply changes to the database and refresh metadata.\n")
|
print("\n✅ Custom UI installation complete. Please run `bench migrate` to apply changes to the database and refresh metadata.\n")
|
||||||
|
|
||||||
def after_migrate():
|
def after_migrate():
|
||||||
|
setup_defaults()
|
||||||
add_custom_fields()
|
add_custom_fields()
|
||||||
# update_onsite_meeting_fields()
|
# update_onsite_meeting_fields()
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue