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',
'description',
'size',
'department_name',
'cases_ordered',
'units_ordered',
'cases_received',
@ -556,6 +557,10 @@ class ReceivingBatchView(PurchasingBatchView):
if batch.truck_dump:
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):
super(ReceivingBatchView, self).configure_row_form(f)
f.set_readonly('cases_ordered')