Stop including 'complete' filter by default for purchasing batches
This commit is contained in:
parent
24516b81cb
commit
fdcf23f65f
|
@ -203,9 +203,12 @@ class PurchasingBatchView(BatchMasterView):
|
|||
default_active=True, default_verb='contains')
|
||||
g.sorters['buyer'] = g.make_sorter(model.Person.display_name)
|
||||
|
||||
if self.request.has_perm('{}.execute'.format(self.get_permission_prefix())):
|
||||
g.filters['complete'].default_active = True
|
||||
g.filters['complete'].default_verb = 'is_true'
|
||||
# TODO: we used to include the 'complete' filter by default, but it
|
||||
# seems to likely be confusing for newcomers, so it is no longer
|
||||
# default. not sure if there are any other implications...?
|
||||
# if self.request.has_perm('{}.execute'.format(self.get_permission_prefix())):
|
||||
# g.filters['complete'].default_active = True
|
||||
# g.filters['complete'].default_verb = 'is_true'
|
||||
|
||||
# invoice_total
|
||||
g.set_type('invoice_total', 'currency')
|
||||
|
|
Loading…
Reference in a new issue