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)
|
super().configure_grid(g)
|
||||||
model = self.model
|
model = self.model
|
||||||
|
|
||||||
g.joiners['vendor'] = lambda q: q.join(model.Vendor)
|
# vendor
|
||||||
g.filters['vendor'] = g.make_filter('vendor', model.Vendor.name,
|
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')
|
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.joiners['department'] = lambda q: q.join(model.Department)
|
||||||
g.filters['department'] = g.make_filter('department', model.Department.name)
|
g.filters['department'] = g.make_filter('department', model.Department.name)
|
||||||
|
|
Loading…
Reference in a new issue