eo_facture: no default CPF filter if another filter is used (#83374)
gitea/barbacompta/pipeline/head There was a failure building this commit
Details
gitea/barbacompta/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
7f8e0f7a69
commit
8cb8c32619
|
@ -139,7 +139,7 @@ class MyClientsFilter(admin.SimpleListFilter):
|
|||
value = super().value()
|
||||
default_value = 'all'
|
||||
user = self.request.user
|
||||
if user and user.project_set.exists():
|
||||
if user and user.project_set.exists() and not self.request.GET:
|
||||
default_value = 'True'
|
||||
|
||||
return value if value in ('True', 'all') else default_value
|
||||
|
@ -234,7 +234,7 @@ class MyContratsFilter(admin.SimpleListFilter):
|
|||
value = super().value()
|
||||
default_value = 'all'
|
||||
user = self.request.user
|
||||
if user and user.project_set.exists():
|
||||
if user and user.project_set.exists() and not self.request.GET:
|
||||
default_value = 'True'
|
||||
|
||||
return value if value in ('True', 'all') else default_value
|
||||
|
|
Loading…
Reference in New Issue