Don't make customer ID readonly when editing
i mean, custom apps are welome to, but seems a bit heavy-handed as default
This commit is contained in:
parent
0e57152888
commit
6fc517269f
|
@ -172,10 +172,6 @@ class CustomersView(MasterView):
|
|||
customer = f.model_instance
|
||||
permission_prefix = self.get_permission_prefix()
|
||||
|
||||
# id
|
||||
if not self.creating:
|
||||
f.set_readonly('id')
|
||||
|
||||
f.set_renderer('default_email', self.render_default_email)
|
||||
if not self.creating and customer.emails:
|
||||
f.set_default('default_email', customer.emails[0].address)
|
||||
|
|
Loading…
Reference in a new issue