浏览代码

Save domain settings to create related custom fields for already enabled domain (#4378)

* Save domain settings to create related custom fields for already enabled domain

* Remove all domains from active domains after running test cases
version-14
Nabin Hait 7 年前
committed by Rushabh Mehta
父节点
当前提交
80c63bb226
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. +2
    -1
      frappe/patches.txt
  2. +1
    -0
      frappe/tests/test_domainification.py

+ 2
- 1
frappe/patches.txt 查看文件

@@ -194,4 +194,5 @@ frappe.patches.v8_x.update_user_permission
frappe.patches.v8_5.patch_event_colors
frappe.patches.v8_10.delete_static_web_page_from_global_search
frappe.patches.v8_x.add_bgn_xaf_xof_currencies
frappe.patches.v9_1.add_sms_sender_name_as_parameters
frappe.patches.v9_1.add_sms_sender_name_as_parameters
execute:frappe.get_single('Domain Settings').save()

+ 1
- 0
frappe/tests/test_domainification.py 查看文件

@@ -23,6 +23,7 @@ class TestDomainification(unittest.TestCase):
frappe.db.sql("delete from `tabHas Role` where role='_Test Role'")
frappe.db.sql("delete from tabDomain where name in ('_Test Domain 1', '_Test Domain 2')")
frappe.delete_doc('DocType', 'Test Domainification')
self.remove_from_active_domains(remove_all=True)

def add_active_domain(self, domain):
""" add domain in active domain """


正在加载...
取消
保存