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')
|
default_active=True, default_verb='contains')
|
||||||
g.sorters['buyer'] = g.make_sorter(model.Person.display_name)
|
g.sorters['buyer'] = g.make_sorter(model.Person.display_name)
|
||||||
|
|
||||||
if self.request.has_perm('{}.execute'.format(self.get_permission_prefix())):
|
# TODO: we used to include the 'complete' filter by default, but it
|
||||||
g.filters['complete'].default_active = True
|
# seems to likely be confusing for newcomers, so it is no longer
|
||||||
g.filters['complete'].default_verb = 'is_true'
|
# 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
|
# invoice_total
|
||||||
g.set_type('invoice_total', 'currency')
|
g.set_type('invoice_total', 'currency')
|
||||||
|
|
Loading…
Reference in a new issue