Skip to content

Commit

Permalink
test: frappe#1080 to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiyad committed Apr 19, 2023
1 parent c5770f3 commit 40602e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpdesk/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
app_email = "[email protected]"
app_license = "AGPLv3"

before_migrate = "helpdesk.patches.modify_installed_apps.execute"

before_install = "helpdesk.setup.install.before_install"
after_install = "helpdesk.setup.install.after_install"

Expand Down
6 changes: 6 additions & 0 deletions helpdesk/patches/modify_installed_apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from frappe.installer import add_to_installed_apps, remove_from_installed_apps


def execute():
remove_from_installed_apps("frappedesk")
add_to_installed_apps("helpdesk")

0 comments on commit 40602e0

Please sign in to comment.