Commit 22c30c27 authored by chirac's avatar chirac

Merge branch 'fix_custom_invoice' into 'dev'

Fix custom invoice

See merge request federez/re2o!371
parents f54cbc1a 70a5996f
Pipeline #920 failed with stage
......@@ -624,7 +624,7 @@ class Article(RevMixin, AclMixin, models.Model):
objects_pool = cls.objects.filter(
Q(type_user='All') | Q(type_user='Adherent')
if not target_user.is_adherent():
if target_user is not None and not target_user.is_adherent():
objects_pool = objects_pool.filter(
Q(type_cotisation='All') | Q(type_cotisation='Adhesion')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment