Tweak display for VendorItem grid etc.

This commit is contained in:
Lance Edgar 2021-02-15 13:00:11 -06:00
parent 54c0e51c03
commit 34a90ccb96

View file

@ -55,6 +55,7 @@ class VendorItemView(CoreOfficeMasterView):
'brand', 'brand',
'description', 'description',
'size', 'size',
'cost',
'units', 'units',
'modified', 'modified',
] ]
@ -82,6 +83,8 @@ class VendorItemView(CoreOfficeMasterView):
g.filters['upc'].default_active = True g.filters['upc'].default_active = True
g.filters['upc'].default_verb = 'contains' g.filters['upc'].default_verb = 'contains'
g.set_type('units', 'quantity')
g.set_sort_defaults('modified', 'desc') g.set_sort_defaults('modified', 'desc')
g.set_link('vendor_item_id') g.set_link('vendor_item_id')
@ -94,6 +97,9 @@ class VendorItemView(CoreOfficeMasterView):
def configure_form(self, f): def configure_form(self, f):
super(VendorItemView, self).configure_form(f) super(VendorItemView, self).configure_form(f)
f.set_type('units', 'quantity')
f.set_type('srp', 'currency')
f.set_readonly('vendor') f.set_readonly('vendor')
if self.creating: if self.creating: