Skip to content

Commit

Permalink
Merge pull request #44 from rtCamp/fix/before-install
Browse files Browse the repository at this point in the history
fix: add error on attempting install alongside Frappe CRM
  • Loading branch information
Aryan20 authored Nov 29, 2024
2 parents 600548d + 86aa506 commit f4113f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion next_crm/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@


def before_install():
pass
installed_apps = frappe.get_installed_apps()
if "crm" in installed_apps:
frappe.throw(
frappe._(
"Next CRM is incompatible with Frappe CRM, please uninstall it before instaliing Next CRM."
)
)


def after_install(force=False):
Expand Down

0 comments on commit f4113f6

Please sign in to comment.