From 5a82808c2fa33fdcec7d07b40b455feb645ade84 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 4 Jun 2019 11:42:13 +0200 Subject: QA find basket: add treatment file --- archaeological_finds/models_finds.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archaeological_finds/models_finds.py') diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 24e5227c1..2616d61fa 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -674,6 +674,11 @@ class FindBasket(Basket, MainItem, ValueGetter): (reverse('findbasket-add-treatment', args=[self.pk]), _(u"Add treatment"), "fa fa-flask", "", "", False), ] + if self.can_do(request, "add_treatmentfile"): + actions += [ + (reverse('findbasket-add-treatmentfile', args=[self.pk]), + _(u"Add treatment file"), "fa fa-file-text-o", "", "", False), + ] duplicate = self.QUICK_ACTIONS[0] actions += [ -- cgit v1.2.3