Hide first/last name for employee view, unless in readonly mode
This commit is contained in:
parent
35d1c24bc7
commit
34bd40ca86
|
@ -137,6 +137,9 @@ class EmployeesView(MasterView):
|
||||||
fs.stores,
|
fs.stores,
|
||||||
fs.departments,
|
fs.departments,
|
||||||
])
|
])
|
||||||
|
if not self.viewing:
|
||||||
|
del fs.first_name
|
||||||
|
del fs.last_name
|
||||||
|
|
||||||
|
|
||||||
class StoresField(fa.Field):
|
class StoresField(fa.Field):
|
||||||
|
|
Loading…
Reference in a new issue