Fix version child classes for Customers view
must be sure to include any supplements
This commit is contained in:
parent
1a15d70568
commit
5940778189
|
@ -557,14 +557,16 @@ class CustomerView(MasterView):
|
|||
return HTML.tag('ul', HTML.literal('').join(items))
|
||||
|
||||
def get_version_child_classes(self):
|
||||
return [
|
||||
classes = super().get_version_child_classes()
|
||||
classes.extend([
|
||||
(model.CustomerGroupAssignment, 'customer_uuid'),
|
||||
(model.CustomerPhoneNumber, 'parent_uuid'),
|
||||
(model.CustomerEmailAddress, 'parent_uuid'),
|
||||
(model.CustomerMailingAddress, 'parent_uuid'),
|
||||
(model.CustomerPerson, 'customer_uuid'),
|
||||
(model.CustomerNote, 'parent_uuid'),
|
||||
]
|
||||
])
|
||||
return classes
|
||||
|
||||
def detach_person(self):
|
||||
customer = self.get_instance()
|
||||
|
|
Loading…
Reference in a new issue