Hide some problematic fields for create/edit CORE customer
This commit is contained in:
parent
e36c413efb
commit
43facf7691
|
@ -77,6 +77,14 @@ class CustomerView(CoreOfficeMasterView):
|
|||
g.set_link('first_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):
|
||||
CustomerView.defaults(config)
|
||||
|
|
Loading…
Reference in a new issue