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