chore: patch to clear out allowed users on crm_settings if frappe crm is installed on the site

(cherry picked from commit 0f987d7135)
This commit is contained in:
diptanilsaha
2026-07-09 12:24:40 +05:30
committed by Mergify
parent eac3afcd88
commit eb76872da9
2 changed files with 11 additions and 0 deletions

View File

@@ -488,3 +488,4 @@ execute:frappe.db.set_single_value("Accounts Settings", "pcv_job_timeout", 3600)
erpnext.patches.v16_0.remove_mandatory_from_inv_dimension_fields
erpnext.patches.v15_0.backfill_sla_link_filters_on_custom_field
erpnext.patches.v15_0.backfill_sla_link_filters_on_docfield
erpnext.patches.v16_0.crm_settings_handle_allowed_users_for_frappe_crm

View File

@@ -0,0 +1,10 @@
import frappe
def execute():
from erpnext.crm.frappe_crm_api import is_crm_installed, remove_allowed_users_on_crm_install
if not is_crm_installed():
return
remove_allowed_users_on_crm_install()