Merge pull request #12105 from rohitwaghchaure/fixed-module-removed-issue

fix: do not remove the modules from txt file if developer mode is off
This commit is contained in:
Rushabh Mehta 2020-12-21 12:52:49 +05:30 committed by GitHub
commit 4efe5a12e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ class ModuleDef(Document):
def on_trash(self):
"""Delete module name from modules.txt"""
if frappe.flags.in_uninstall or self.custom:
if not frappe.conf.get('developer_mode') or frappe.flags.in_uninstall or self.custom:
return
modules = None