Add pagination to price, cost history grids for product view
This commit is contained in:
parent
a038f2a98d
commit
b5028ab2d0
3 changed files with 11 additions and 4 deletions
|
@ -985,6 +985,9 @@ class Grid(object):
|
|||
context['empty_labels'] = empty_labels
|
||||
if 'grid_columns' not in context:
|
||||
context['grid_columns'] = self.get_buefy_columns()
|
||||
context.setdefault('paginated', False)
|
||||
if context['paginated']:
|
||||
context.setdefault('per_page', 20)
|
||||
|
||||
# locate the 'view' action
|
||||
# TODO: this should be easier, and/or moved elsewhere?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue