Show department column for receiving batch rows

This commit is contained in:
Lance Edgar 2018-06-28 12:27:30 -05:00
parent 350e901c2a
commit 8d0dfd631b

View file

@ -175,6 +175,7 @@ class ReceivingBatchView(PurchasingBatchView):
'brand_name', 'brand_name',
'description', 'description',
'size', 'size',
'department_name',
'cases_ordered', 'cases_ordered',
'units_ordered', 'units_ordered',
'cases_received', 'cases_received',
@ -556,6 +557,10 @@ class ReceivingBatchView(PurchasingBatchView):
if batch.truck_dump: if batch.truck_dump:
f.remove_field('department') f.remove_field('department')
def configure_row_grid(self, g):
super(ReceivingBatchView, self).configure_row_grid(g)
g.set_label('department_name', "Department")
def configure_row_form(self, f): def configure_row_form(self, f):
super(ReceivingBatchView, self).configure_row_form(f) super(ReceivingBatchView, self).configure_row_form(f)
f.set_readonly('cases_ordered') f.set_readonly('cases_ordered')