Tweak config methods for customer master view
This commit is contained in:
parent
dca890f169
commit
aac0e7d35c
|
@ -385,14 +385,17 @@ class CustomersView(MasterView):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def defaults(cls, config):
|
def defaults(cls, config):
|
||||||
|
cls._defaults(config)
|
||||||
|
cls._customer_defaults(config)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _customer_defaults(cls, config):
|
||||||
route_prefix = cls.get_route_prefix()
|
route_prefix = cls.get_route_prefix()
|
||||||
url_prefix = cls.get_url_prefix()
|
url_prefix = cls.get_url_prefix()
|
||||||
permission_prefix = cls.get_permission_prefix()
|
permission_prefix = cls.get_permission_prefix()
|
||||||
model_key = cls.get_model_key()
|
model_key = cls.get_model_key()
|
||||||
model_title = cls.get_model_title()
|
model_title = cls.get_model_title()
|
||||||
|
|
||||||
cls._defaults(config)
|
|
||||||
|
|
||||||
# detach person
|
# detach person
|
||||||
if cls.people_detachable:
|
if cls.people_detachable:
|
||||||
config.add_tailbone_permission(permission_prefix, '{}.detach_person'.format(permission_prefix),
|
config.add_tailbone_permission(permission_prefix, '{}.detach_person'.format(permission_prefix),
|
||||||
|
|
Loading…
Reference in a new issue