From c320ab2febd944d4396d3172dbbe75d12e95e197 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Oct 2017 20:52:07 -0700 Subject: [PATCH] Add product and personnel flags for Department --- tailbone/views/departments.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tailbone/views/departments.py b/tailbone/views/departments.py index 04fc484f..85ac36a1 100644 --- a/tailbone/views/departments.py +++ b/tailbone/views/departments.py @@ -44,6 +44,8 @@ class DepartmentsView(MasterView): grid_columns = [ 'number', 'name', + 'product', + 'personnel', ] def configure_grid(self, g): @@ -51,6 +53,8 @@ class DepartmentsView(MasterView): g.filters['name'].default_active = True g.filters['name'].default_verb = 'contains' g.default_sortkey = 'number' + g.set_type('product', 'boolean') + g.set_type('personnel', 'boolean') g.set_link('number') g.set_link('name') @@ -58,6 +62,8 @@ class DepartmentsView(MasterView): super(DepartmentsView, self).configure_form(f) f.remove_field('subdepartments') f.remove_field('employees') + f.set_type('product', 'boolean') + f.set_type('personnel', 'boolean') def template_kwargs_view(self, **kwargs): department = kwargs['instance']