mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 18:51:21 +00:00
refactor(test): SLA move company creation to bootstrap
This commit is contained in:
@@ -241,6 +241,7 @@ class BootStrapTestData:
|
||||
self.make_sales_person()
|
||||
self.make_activity_type()
|
||||
self.make_address()
|
||||
self.update_support_settings()
|
||||
self.update_selling_settings()
|
||||
self.update_stock_settings()
|
||||
self.update_system_settings()
|
||||
@@ -271,6 +272,11 @@ class BootStrapTestData:
|
||||
system_settings.rounding_method = "Banker's Rounding"
|
||||
system_settings.save()
|
||||
|
||||
def update_support_settings(self):
|
||||
support_settings = frappe.get_doc("Support Settings")
|
||||
support_settings.track_service_level_agreement = True
|
||||
support_settings.save()
|
||||
|
||||
def update_selling_settings(self):
|
||||
selling_settings = frappe.get_doc("Selling Settings")
|
||||
selling_settings.selling_price_list = "Standard Selling"
|
||||
|
||||
Reference in New Issue
Block a user