Make Person.employee field readonly

This commit is contained in:
Lance Edgar 2017-07-03 23:52:30 -05:00
parent a03083efdd
commit db0eaf8eb0

View file

@ -126,7 +126,7 @@ class PeopleView(MasterView):
fs.phone.set(label="Phone Number", readonly=True)
fs.email.set(label="Email Address", readonly=True)
fs.address.set(label="Mailing Address", readonly=True)
fs.employee.set(renderer=forms.renderers.EmployeeFieldRenderer, attrs={'hyperlink': True})
fs.employee.set(renderer=forms.renderers.EmployeeFieldRenderer, attrs={'hyperlink': True}, readonly=True)
fs._customers.set(renderer=CustomersFieldRenderer, readonly=True)
def configure_fieldset(self, fs):