Expose pack_size
for delproduct batch
This commit is contained in:
parent
8eee4a1cf0
commit
4addedef6e
|
@ -64,6 +64,7 @@ class DeleteProductBatchView(BatchMasterView):
|
||||||
'brand_name',
|
'brand_name',
|
||||||
'description',
|
'description',
|
||||||
'size',
|
'size',
|
||||||
|
'pack_size',
|
||||||
'department_name',
|
'department_name',
|
||||||
'subdepartment_name',
|
'subdepartment_name',
|
||||||
'present_in_scale',
|
'present_in_scale',
|
||||||
|
@ -78,6 +79,7 @@ class DeleteProductBatchView(BatchMasterView):
|
||||||
'brand_name',
|
'brand_name',
|
||||||
'description',
|
'description',
|
||||||
'size',
|
'size',
|
||||||
|
'pack_size',
|
||||||
'department_number',
|
'department_number',
|
||||||
'department_name',
|
'department_name',
|
||||||
'subdepartment_number',
|
'subdepartment_number',
|
||||||
|
@ -105,6 +107,12 @@ class DeleteProductBatchView(BatchMasterView):
|
||||||
row.STATUS_PENDING_CUSTOMER_ORDERS):
|
row.STATUS_PENDING_CUSTOMER_ORDERS):
|
||||||
return 'notice'
|
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):
|
def configure_row_form(self, f):
|
||||||
super(DeleteProductBatchView, self).configure_row_form(f)
|
super(DeleteProductBatchView, self).configure_row_form(f)
|
||||||
row = f.model_instance
|
row = f.model_instance
|
||||||
|
@ -112,6 +120,9 @@ class DeleteProductBatchView(BatchMasterView):
|
||||||
# upc
|
# upc
|
||||||
f.set_renderer('upc', self.render_upc)
|
f.set_renderer('upc', self.render_upc)
|
||||||
|
|
||||||
|
# pack_size
|
||||||
|
f.set_type('pack_size', 'quantity')
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
DeleteProductBatchView.defaults(config)
|
DeleteProductBatchView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue