Hide first/last name for employee view, unless in readonly mode

This commit is contained in:
Lance Edgar 2016-12-10 16:03:55 -06:00
parent 35d1c24bc7
commit 34bd40ca86

View file

@ -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):