Cleanup grid columns for receiving batches
This commit is contained in:
parent
23d38604c4
commit
fec7c3b3ee
|
@ -80,7 +80,6 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
'truck_dump',
|
||||
'description',
|
||||
'department',
|
||||
'buyer',
|
||||
'date_ordered',
|
||||
'created',
|
||||
'created_by',
|
||||
|
@ -202,6 +201,12 @@ class ReceivingBatchView(PurchasingBatchView):
|
|||
def batch_mode(self):
|
||||
return self.enum.PURCHASE_BATCH_MODE_RECEIVING
|
||||
|
||||
def configure_grid(self, g):
|
||||
super(ReceivingBatchView, self).configure_grid(g)
|
||||
|
||||
if not self.handler.allow_truck_dump_receiving():
|
||||
g.remove('truck_dump')
|
||||
|
||||
def create(self, form=None, **kwargs):
|
||||
"""
|
||||
Custom view for creating a new receiving batch. We split the process
|
||||
|
|
Loading…
Reference in a new issue