Add link to vendor name for receiving batches grid
This commit is contained in:
parent
b566549d15
commit
1f97d4f5e5
|
@ -168,10 +168,12 @@ class PurchasingBatchView(BatchMasterView):
|
|||
super().configure_grid(g)
|
||||
model = self.model
|
||||
|
||||
g.joiners['vendor'] = lambda q: q.join(model.Vendor)
|
||||
g.filters['vendor'] = g.make_filter('vendor', model.Vendor.name,
|
||||
# vendor
|
||||
g.set_link('vendor')
|
||||
g.set_joiner('vendor', lambda q: q.join(model.Vendor))
|
||||
g.set_sorter('vendor', model.Vendor.name)
|
||||
g.set_filter('vendor', model.Vendor.name,
|
||||
default_active=True, default_verb='contains')
|
||||
g.sorters['vendor'] = g.make_sorter(model.Vendor.name)
|
||||
|
||||
g.joiners['department'] = lambda q: q.join(model.Department)
|
||||
g.filters['department'] = g.make_filter('department', model.Department.name)
|
||||
|
|
Loading…
Reference in a new issue