Add filter for Vendor ID in Pricing Batch row grid

This commit is contained in:
Lance Edgar 2019-04-25 21:29:10 -05:00
parent 364257fe05
commit a5f04b6c7f

View file

@ -165,6 +165,7 @@ class PricingBatchView(BatchMasterView):
g.set_joiner('vendor_id', lambda q: q.outerjoin(model.Vendor)) g.set_joiner('vendor_id', lambda q: q.outerjoin(model.Vendor))
g.set_sorter('vendor_id', model.Vendor.id) g.set_sorter('vendor_id', model.Vendor.id)
g.set_filter('vendor_id', model.Vendor.id)
g.set_renderer('vendor_id', self.render_vendor_id) g.set_renderer('vendor_id', self.render_vendor_id)
g.set_type('old_price', 'currency') g.set_type('old_price', 'currency')