Merge pull request #4853 from achillesrasquinha/fixes-chat
[PATCH, frappe-chat] enable chat by default within system settings
This commit is contained in:
commit
e00242ffff
2 changed files with 12 additions and 0 deletions
|
|
@ -202,3 +202,4 @@ frappe.patches.v9_1.move_feed_to_activity_log
|
|||
execute:frappe.delete_doc('Page', 'data-import-tool', ignore_missing=True)
|
||||
frappe.patches.v10_0.reload_countries_and_currencies
|
||||
frappe.patches.v10_0.refactor_social_login_keys
|
||||
frappe.patches.v10_0.enable_chat_by_default_within_system_settings
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
import frappe
|
||||
|
||||
def execute():
|
||||
doc = frappe.get_single('System Settings')
|
||||
doc.enable_chat = 1
|
||||
|
||||
# Changes prescribed by Nabin Hait (nabin@frappe.io)
|
||||
doc.flags.ignore_mandatory = True
|
||||
doc.flags.ignore_permissions = True
|
||||
|
||||
doc.save()
|
||||
Loading…
Add table
Reference in a new issue