Hide some problematic fields for create/edit CORE customer

This commit is contained in:
Lance Edgar 2019-10-25 15:36:01 -05:00
parent e36c413efb
commit 43facf7691

View file

@ -77,6 +77,14 @@ class CustomerView(CoreOfficeMasterView):
g.set_link('first_name') g.set_link('first_name')
g.set_link('last_name') g.set_link('last_name')
def configure_form(self, f):
super(CustomerView, self).configure_form(f)
if self.creating or self.editing:
f.remove_field('member_info')
f.remove_field('member_type')
f.remove_field('last_change')
def includeme(config): def includeme(config):
CustomerView.defaults(config) CustomerView.defaults(config)