Skip to content

Commit

Permalink
Disable cloning for Documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
genglert committed Nov 4, 2024
1 parent c1a8611 commit 3f2a4f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Users side :
------------
# Apps :
* Documents :
- The cloning of Document has been disabled.
* Recurrents :
- The cloning of Generator has been disabled.

Expand Down
6 changes: 5 additions & 1 deletion creme/documents/models/document.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################################################################
# Creme is a free/open-source Customer Relationship Management software
# Copyright (C) 2009-2022 Hybird
# Copyright (C) 2009-2024 Hybird
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -63,6 +63,10 @@ def __str__(self):
def get_absolute_url(self):
return reverse('documents__view_document', args=(self.id,))

@staticmethod
def get_clone_absolute_url():
return ''

@staticmethod
def get_create_absolute_url():
return reverse('documents__create_document')
Expand Down

0 comments on commit 3f2a4f4

Please sign in to comment.