From 136cb888e0fa8177138bfae34f1127c87a61002a Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 1 May 2017 08:34:44 +0200 Subject: [PATCH] Do not display unnecessary producer when invoiced --- repanier/models/permanence.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repanier/models/permanence.py b/repanier/models/permanence.py index 205b8fb..afac34e 100644 --- a/repanier/models/permanence.py +++ b/repanier/models/permanence.py @@ -225,9 +225,10 @@ class Permanence(TranslatableModel): pi.to_be_invoiced_balance ) else: - label = "%s" % ( - pi.producer.short_profile_name - ) + # label = "%s" % ( + # pi.producer.short_profile_name + # ) + continue # Important : target="_blank" because the invoices must be displayed without the cms_toolbar # Such that they can be accessed by the producer and by the staff link.append( -- GitLab