Make case/unit quantities prettier within Inventory batch rows grid

This commit is contained in:
Lance Edgar 2017-06-22 01:21:15 -05:00
parent b9a96f306b
commit b2f96f4217

View file

@ -89,6 +89,8 @@ class InventoryBatchView(BatchMasterView):
super(InventoryBatchView, self)._preconfigure_row_grid(g) super(InventoryBatchView, self)._preconfigure_row_grid(g)
g.upc.set(label="UPC") g.upc.set(label="UPC")
g.brand_name.set(label="Brand") g.brand_name.set(label="Brand")
g.cases.set(renderer=forms.renderers.QuantityFieldRenderer)
g.units.set(renderer=forms.renderers.QuantityFieldRenderer)
g.status_code.set(label="Status") g.status_code.set(label="Status")
def configure_row_grid(self, g): def configure_row_grid(self, g):