diff options
author | Cefin <kevon@tuta.io> | 2021-11-29 12:07:47 +0000 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | fda77743c85ccfeeec7c53bf16af4c432326605a (patch) | |
tree | d4a1e401fc9c56d3106c36aaa42254605978bc75 /ishtar_common/models.py | |
parent | 08f5125e9be5fe5c8773552a447da67ccf801208 (diff) | |
download | Ishtar-fda77743c85ccfeeec7c53bf16af4c432326605a.tar.bz2 Ishtar-fda77743c85ccfeeec7c53bf16af4c432326605a.zip |
rapid action add document with parent source #5172
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index e87e6c5a2..197ac5dcc 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -4210,6 +4210,18 @@ class Document( True, ) ) + can_create_document = self.can_do(request, "add_document") + if can_create_document: + actions += [ + ( + reverse("create-document-source", args=[self.pk]), + _("Add document with source parent"), + "fa fa-plus", + _("Doc./src"), + "", + False, + ) + ] return actions @property |