diff --git a/tailbone/views/batch/delproduct.py b/tailbone/views/batch/delproduct.py index 287fb3e3..60561e96 100644 --- a/tailbone/views/batch/delproduct.py +++ b/tailbone/views/batch/delproduct.py @@ -64,6 +64,7 @@ class DeleteProductBatchView(BatchMasterView): 'brand_name', 'description', 'size', + 'pack_size', 'department_name', 'subdepartment_name', 'present_in_scale', @@ -78,6 +79,7 @@ class DeleteProductBatchView(BatchMasterView): 'brand_name', 'description', 'size', + 'pack_size', 'department_number', 'department_name', 'subdepartment_number', @@ -105,6 +107,12 @@ class DeleteProductBatchView(BatchMasterView): row.STATUS_PENDING_CUSTOMER_ORDERS): return 'notice' + def configure_row_grid(self, g): + super(DeleteProductBatchView, self).configure_row_grid(g) + + # pack_size + g.set_type('pack_size', 'quantity') + def configure_row_form(self, f): super(DeleteProductBatchView, self).configure_row_form(f) row = f.model_instance @@ -112,6 +120,9 @@ class DeleteProductBatchView(BatchMasterView): # upc f.set_renderer('upc', self.render_upc) + # pack_size + f.set_type('pack_size', 'quantity') + def includeme(config): DeleteProductBatchView.defaults(config)