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:
commit
4efe5a12e0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue