Merge pull request #4853 from achillesrasquinha/fixes-chat

[PATCH, frappe-chat] enable chat by default within system settings
This commit is contained in:
Achilles Rasquinha 2018-01-17 15:52:29 +05:30 committed by GitHub
commit e00242ffff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -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

View file

@ -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()