Make field list explicit for Department views
This commit is contained in:
parent
4f2f192783
commit
793d80f092
|
@ -52,6 +52,14 @@ class DepartmentsView(MasterView):
|
||||||
'exempt_from_gross_sales',
|
'exempt_from_gross_sales',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
form_fields = [
|
||||||
|
'number',
|
||||||
|
'name',
|
||||||
|
'product',
|
||||||
|
'personnel',
|
||||||
|
'exempt_from_gross_sales',
|
||||||
|
]
|
||||||
|
|
||||||
def configure_grid(self, g):
|
def configure_grid(self, g):
|
||||||
super(DepartmentsView, self).configure_grid(g)
|
super(DepartmentsView, self).configure_grid(g)
|
||||||
g.filters['name'].default_active = True
|
g.filters['name'].default_active = True
|
||||||
|
|
Loading…
Reference in a new issue