Add row count to inventory and label batch views
This commit is contained in:
parent
17017adde8
commit
b9a96f306b
|
@ -172,6 +172,7 @@ class BatchMasterView(MasterView):
|
||||||
g.id,
|
g.id,
|
||||||
g.created,
|
g.created,
|
||||||
g.created_by,
|
g.created_by,
|
||||||
|
g.rowcount,
|
||||||
g.executed,
|
g.executed,
|
||||||
g.executed_by,
|
g.executed_by,
|
||||||
],
|
],
|
||||||
|
|
|
@ -55,8 +55,15 @@ class InventoryBatchView(BatchMasterView):
|
||||||
label="Count Mode")
|
label="Count Mode")
|
||||||
|
|
||||||
def configure_grid(self, g):
|
def configure_grid(self, g):
|
||||||
super(InventoryBatchView, self).configure_grid(g)
|
g.configure(include=[
|
||||||
g.append(g.mode)
|
g.id,
|
||||||
|
g.created,
|
||||||
|
g.created_by,
|
||||||
|
g.rowcount,
|
||||||
|
g.executed,
|
||||||
|
g.executed_by,
|
||||||
|
g.mode,
|
||||||
|
], readonly=True)
|
||||||
|
|
||||||
def _preconfigure_fieldset(self, fs):
|
def _preconfigure_fieldset(self, fs):
|
||||||
super(InventoryBatchView, self)._preconfigure_fieldset(fs)
|
super(InventoryBatchView, self)._preconfigure_fieldset(fs)
|
||||||
|
@ -73,6 +80,7 @@ class InventoryBatchView(BatchMasterView):
|
||||||
fs.created_by,
|
fs.created_by,
|
||||||
fs.handheld_batches,
|
fs.handheld_batches,
|
||||||
fs.mode,
|
fs.mode,
|
||||||
|
fs.rowcount,
|
||||||
fs.executed,
|
fs.executed,
|
||||||
fs.executed_by,
|
fs.executed_by,
|
||||||
])
|
])
|
||||||
|
|
|
@ -61,6 +61,7 @@ class LabelBatchView(BatchMasterView):
|
||||||
fs.created,
|
fs.created,
|
||||||
fs.created_by,
|
fs.created_by,
|
||||||
fs.handheld_batches,
|
fs.handheld_batches,
|
||||||
|
fs.rowcount,
|
||||||
fs.executed,
|
fs.executed,
|
||||||
fs.executed_by,
|
fs.executed_by,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue