From 4addedef6ece47bf6028d738a2eb850a6ba8ec97 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 15 Jul 2021 14:13:01 -0500 Subject: [PATCH] Expose `pack_size` for delproduct batch --- tailbone/views/batch/delproduct.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)