diff --git a/tailbone/views/inventory.py b/tailbone/views/inventory.py index d4492bff..28f5640b 100644 --- a/tailbone/views/inventory.py +++ b/tailbone/views/inventory.py @@ -327,16 +327,15 @@ class InventoryBatchView(BatchMasterView): g.set_type('unit_cost', 'currency') g.set_type('total_cost', 'currency') - # TODO: i guess row grids don't support this properly yet? - # g.set_link('upc') - # g.set_link('item_id') - # g.set_link('description') - g.set_label('upc', "UPC") g.set_label('brand_name', "Brand") g.set_label('status_code', "Status") g.set_label('previous_units_on_hand', "Prev. On Hand") + g.set_link('upc') + g.set_link('item_id') + g.set_link('description') + def row_grid_extra_class(self, row, i): if row.status_code == row.STATUS_PRODUCT_NOT_FOUND: return 'warning' diff --git a/tailbone/views/master2.py b/tailbone/views/master2.py index 1efa0e38..836edb70 100644 --- a/tailbone/views/master2.py +++ b/tailbone/views/master2.py @@ -282,6 +282,7 @@ class MasterView2(MasterView): 'pageable': self.rows_pageable, 'default_pagesize': self.rows_default_pagesize, 'extra_row_class': self.row_grid_extra_class, + 'url': lambda obj: self.get_row_action_url('view', obj), } if self.has_rows and 'main_actions' not in defaults: